Limiting content length in POST

          Hi all,
          We need to restrict the size of the resume uploaded
          to say, 1 MB and we don't want the error message to come up after the upload is
          completed. We tried to use Weblogic property maxPostSize=xxx but weblogic aborts
          the connection abruptly as soon as it finds the resume size is greater than allowed
          and all user sees is a "Page cannot be displayed" message, we
          need some way to give appropriate message to the user about this, any help on
          this is greatly appreciated.
          Thanks
          

Maby u try to force it with:
conn.setRequestProperty ( "Content-Length" ,
               Integer.toString (requestData.getBytes()));
for me it does also not work...but u never know
lemme know if it works
Fabian

Similar Messages

  • CL_HTTP_CLIENT, Content-Length in multipart segment are not part of RFC 186

    Hi, we are generating http multipart request using class CL_HTTP_CLIENT, and multipart segments header are filled with Content-Type and Content-Length, by default. Both elements are not part od RFC 1867, and request is not working.
    We find a way to avoid Content-Type in note 582889 "delete Content-Type of HTTP request header", but we can find anything to avoid content-length.
    POST /TransporteBienes/SeguridadCliente/presentarRemitos.do HTTP/1.1
    Content-Type: multipart/form-data; boundary=ejjeeffe0
    Content-Length:       759
    accept-encoding:
    --ejjeeffe0
    Content-Length:        11
    content-disposition: form-data; name="user"
    30663288497
    --ejjeeffe0
    Content-Length:         6
    content-disposition: form-data; name="password"
    We need to avoid content-length:
    POST /TransporteBienes/SeguridadCliente/presentarRemitos.do HTTP/1.1
    Content-Type: multipart/form-data; boundary=ejjeeffe0
    Content-Length:       759
    accept-encoding:
    --ejjeeffe0
    content-disposition: form-data; name="user"
    30663288497
    --ejjeeffe0
    content-disposition: form-data; name="password"
    Is there any way to do that?
    Regards.

    Anybody?

  • Content length limited to int?

    I didn't find appropriate post to this topic yet, so I hope there is no duplicates. I demand to change all content length operations to at least long with following usage big decimals. Indeed we live in century of big bytes technologies and have so limitation very annoying. Why I need to use set/get headers function to manipulate with content lengt more than Integer.MAX_VALUE. Servlet spec 2.5 must be changed to fit new data size requirements, what do you think?

    You do realize that Integer.MAX_SIZE = 2 Gigabytes, right? If you're sending that much data to a client over a single Http connection, you've got bigger problems than the max size of an int...

  • Content-length in HTTP Post request

    Hi all,
    I have a problem with a Http request. I send data in a POST to a servlet, but the KVM doesn't set the Content-Length correctly. How can I do ?
    The code :
    conn = (HttpConnection) Connector.open(m_strServer);
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    String requestData = "from=" + m_strOriginator + "&to=" + m_strDestinator + "&message=" + m_strMessage;
    out = conn.openDataOutputStream();
    out.write(requestData.getBytes());
    out.flush();
    in = conn.openDataInputStream();
    if (conn.getResponseCode() == 200)
         response = true;the request sended :
    POST /my_directory/test.xml HTTP/1.1
    Content-Type: application/x-www-form-urlencoded
    Transfer-Encoding: chunked
    Host: my_pc
    15
    from=8&to=9&message=J
    0
    I think that the KVM doesn't put "Content-Length:" before "15".
    Perhaps it's a bug.
    St�phane

    Maby u try to force it with:
    conn.setRequestProperty ( "Content-Length" ,
                   Integer.toString (requestData.getBytes()));
    for me it does also not work...but u never know
    lemme know if it works
    Fabian

  • SetRequestProperty("Content-Length", ....) is not set in the POST resquest

    Hi,
    Iam sending a POST request to a servlet. Apart from other request properties iam also setting "Content-Length" property by using the
    setRequestProperty("Content-Length", data.length) on httpconnection object. When i checked the http packtes being from the toolkit to the servlet (by using ethereal tool) i see that all other properties as appropriately set by
    "Content-Length" is not being set at all. This is causing me big problem at the server side.
    Can any one tell my why the toolkit could have droped the
    "Content-Length" property in the POST request.
    Thanks in Advance
    Raju

    :) Before Sending the data only. The code snippet is as follows:
    String data="abc";                         hc.setRequestProperty( "User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0" );                              hc.setRequestProperty("Content-Language", "en-US" );
    hc.setRequestProperty( "Accept", "application/octet-stream" );
    hc.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    hc.setRequestProperty("Content-Length",Integer.toString(data.getBytes().length));
    hc.setRequestProperty("Cookie",sessionId);
    OutputStream out = hc.openOutputStream();
    out.write(temp.getBytes());
    out.flush();
    out.close();
    Thanks
    Rama Raju
                                            int rc = hc.getResponseCode();
                                  if (rc != HttpConnection.HTTP_OK) {
                             System.out.println("HTTP response code: " + rc);
    ....................................

  • HTTP PUT Request for File Uploads is returning a response header with content-length = 0

    After upgrading from CF9 to Coldfusion 10, I'm running into an odd issue, with `cURL` calls to a webservice that used to work.
    We are using an HTTP PUT Request with multipart="no" so that the request header content is the file itself, now the data is being sent properly in the content but it has a ~8k limit. This is fine for smaller files but some files are 60kb etc.
    Errors are odd too, near the 8KB limit we get a bad gateway error 502, and above that the webpage errors with a connection reset.
    It works fine with multipart="yes", but in a PUT request the file's data isn't even sent since it's looking for `httpparam formField` , the content-length from the target page's Headers show a content-length of 0 which causes `cURL` to fail with an error (56): http://curl.haxx.se/docs/manpage.html
    Here's example code to reproduce:
    <cfset sFilename = "C:\999\test4.txt">
    <cffile action="readBinary" file="#sFilename#" variable="fileRead">
    <cfset oFileInfo = GetFileInfo("#sFilename#")>
    <cfhttp           url="localhost/Clarence/diff_elt_test_output.cfm"
                                  method="PUT"
                                  username="******"
                                  password="******"
                                  multipart="yes"
                                  result="oHttp">
              <cfhttpparam type="header" name="Content-Type" value="text/plain" />
              <cfhttpparam type="header" name="Content-Length" value="#oFileInfo.Size#" />
              <cfhttpparam type="body" value="#fileRead#"/>
    </cfhttp>
    <cfdump var="#oHttp#">
    Dumping the response via GetHttpRequestData() shows that the header's content-length = 0 and content is blank.
    Whereas POST requests work fine, cURL has a -F form option which is our fallback but a solution to this would be great.
    Here's what I've tried:
    1. Changing CF post request limit sizes (64MB+)
    2. Changing IIS config web/webserver http runtime and security.request filtering request limits to much higher values
    3. AJP Connector between IIS and Tomcat has a default 8KB header limit, I changed that to 64k on both sides, still nothing
    Also am I missing something fundamental here? I thought at the network layer a packet is split up and rejoined, so large content in a http request body should work, what's wrong with Coldfusion 10?

    I am familiar with java.net package and know how to
    Read and Write Streams.
    However, what I do not know is what string
    represntation of PUT or POST resquests is?It's HttpURLConnection.setRequestMethod("PUT") or ("POST").
    Also you have to setDoOutput(true).
    Then you set the content type, possibly encode the input, set the content length, and write the file data to the stream.
    Using a Jakarta package may be easier, however.

  • File naming on Russian and limitation on length of file names

    Hi.
    I post this message as a note for any users for whom English is not native language and in everyday practice they use native language on Linux systems.
    Torrents and Linux
    System:
    OS: Archlinux x86_64
    FS: Reiserfs
    Locale: UTF-8
    Client: rtorrent
    torrent: http://torrents.ru/forum/viewtopic.php?t=1445641
    Problem:
    if one try to download this torrent with the help of rtorrent he see message
    Hashing: Storage error: [Hash checker was unable to map chunk: Слишком длинное имя файла]
    (this in on Russian, on English this is: 'File name too long')
    Namely rtorrent couldn't handle this file
    Белов А. В. - Микроконтроллеры AVR в радиолюбительской практике. Автоматика. Радиоэлектроника. Связь. Радио. Радиосвязь. Любительская радиосвязь.(2007)(336).djvu
    (on Russian again).
    The same message prints Transmission when one try to download this particular file.
    Reason:
    the name is exceeded the limitation on length of file name: 255 bytes. See, e.g.
    $ echo 'Белов А. В. - Микроконтроллеры AVR в радиолюбительской практике. Автоматика. Радиоэлектроника. Связь. Радио. Радиосвязь. Любительская радиосвязь.(2007)(336).djvu' | wc -c
    279
    The problem doesn't depend on type of FS, it is in Linux kernel (Linux VFS). Reiserfs has limit in 4032 bytes on length of file name, Reiser4 has limit in 3976 bytes.
    In this case NTFS is more advanced FS:
    the limitation on length of file name is 255 UTF-16 code units (255*2 bytes).
    Of course if one use 8-bit locale (e.g. cp1251, koi8-r and etc) then this problem for THIS file is not appeared:
    echo 'Белов А. В. - Микроконтроллеры AVR в радиолюбительской практике. Автоматика. Радиоэлектроника. Связь. Радио. Радиосвязь. Любительская радиосвязь.(2007)(336).djvu' | iconv -f utf-8 -t koi8-r | wc -c
    162
    Nevertheless there is no guarantee that someone won't face with longer named files and in that situation the advantage of NTFS against any Linux FS is evident.
    Info about FS limitation is taken from wikipedia.
    I would glad to hear comments and suggestions about this particular problem (because I don't know how to download files of this torrent and store them on my Linux box).
    P.S. As I understand FreeBSD has the same problem in this case.
    P.P.S. I think that this problem could appear for example on Linux which serves as samba server (file server) when windows user want to place file with native alphabet letters in name on server.

    This is a reported bug.

  • Content-Length Header being stripped out of Gatewayed pages

    I am working to integrate the GPL'ed Moodle e-learning web application with Plumtree.  However, I'm hitting a snag.  For certain POST events, Moodle expects to receive a content-length header.
    When I use the application outside the portal, it works fine, and the Content-Length header is sent.  However, when I have the application gatewayed through the portal, the Content-Length header seems to get stripped out of the HTTP request and I get HTTP error 411 (Content Length Required).
    Is there a way I can convince the portal to not strip out the Content Length HTTP header?

    I'm working with .NET portal.
    For the particular file that caused the error as reported in the tcptrace log, I opened IIS manager, found the virtual directory, right clicked to open the properties dialog and checked directory security.
    Select edit anonymous access to check the account used for anonymous access, supply the user account needed and allow IIS to manage password. If in doubt check the settings on pages containing http post that are functioning properly.
    Check Integrated Widows Authentication
    I found this virutal directory had no user in the anonymous account, not sure how this happened. This resulted in pages that contained post/postbacks giving the "length required" error when I hit a button to perform the post/postback. Pages that did not contain Posts/Postback work correctly.

  • Content-Length header not changed after url-rewrite... yields cut page.

    We use iPlanet6 ,service pack 4. The pages that return from the servlets are
    changed by the Application Server. The Application Server adds
    GXHC_GX_jst=901a10a6662d6164& to the all the URLs (which increase the
    page's size). The problem is that Application Server does not change the
    Content-Length header in the servlet response. This yields cut pages in the
    browser (IExplorer5).
    If we don't add the Content-Length header it works fine. (I.e., The pages
    are not cut.) Our problem is that we work with mobile devices that must have
    the Content-Length header to work properly.
    Q: Do you know if there is a patch that fix the problem?
    Q: Is it possible to configure the Application Server to prevent this
    url-rewrite?
    Regards,
              Aviram

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • HTTP Compression causes HTTP2228: Response content length mismatch

    Dear All,
    My application use iPlanet 6.1, recently we have enabled HTTP compression for the webserver.
    Which inturn does not picking up style sheet and results with bad look and feel on front end.
    On the back iPlanet logs we see some errors like
    warning (23569): for host xxx.xxx.xxx.xxtrying to GET /zbank2/css/zbank.css, finish-response reports: HTTP2228: Response content length mismatch (315 bytes with a content length of 945)
    Could you please help to resolve this problem
    Thanks,
    Jude

    Can you send your css file? I tried it on Web Server 7.0 update 3 seems to be working fine.
    I made a css file from [http://www.w3.org/Style/Examples/011/firstcss|http://www.w3.org/Style/Examples/011/firstcss]
    $cat mystyle.css
    body {
      padding-left: 11em;
      font-family: Georgia, "Times New Roman",
            Times, serif;
      color: purple;
      background-color: #d8da3d }
    ul.navbar {
      list-style-type: none;
      padding: 0;
      margin: 0;
      position: absolute;
      top: 2em;
      left: 1em;
      width: 9em }
    h1 {
      font-family: Helvetica, Geneva, Arial,
            SunSans-Regular, sans-serif }
    ul.navbar li {
      background: white;
      margin: 0.5em 0;
      padding: 0.3em;
      border-right: 1em solid black }
    ul.navbar a {
      text-decoration: none }
    a:link {
      color: blue }
    a:visited {
      color: purple }
    address {
      margin-top: 1em;
      padding-top: 1em;
      border-top: thin dotted }
    $cat myhtml.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html>
    <head>
      <title>My first styled page</title>
      <link rel="stylesheet" href="mystyle.css">
    </head>
    <body>
    This is style.html
    </body>
    </html>$cat obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/export1/wsNov4/iplanet/ias/server/work/B1/SunOS5.8_DBG.OBJ/lib/icons" name="es-internal"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Output fn="insert-filter" filter="http-compression" type="text/*" vary="on" fragment-size="8096" compression-level="6"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>Sent a request, but I didn't see any errors
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: executing method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" Directive="Service"
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: executing fn="insert-filter" filter="http-compression" type="text/*" vary="on" fragment-size="8096" compression-level="6" Directive="Output" magnus-internal=""
    [07/Nov/2008:12:58:53] fine (22021): inserted filter http-compression
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: fn="insert-filter" filter="http-compression" type="text/*" vary="on" fragment-size="8096" compression-level="6" Directive="Output" magnus-internal="" returned 0 (REQ_PROCEED)
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" Directive="Service" returned 0 (REQ_PROCEED)...ssltap shows the response was encoded :
    --> [
    GET /mystyle.css HTTP/1.1^M
    Host: ....
    User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1.2) Gecko/20070225
    Firefox/2.0.0.2^M
    Accept: text/css,*/*;q=0.1^M
    Accept-Language: en-us,en;q=0.5^M
    Accept-Encoding: gzip,deflate^M
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7^M
    Keep-Alive: 300^M
    Connection: keep-alive^M
    Referer: http://.../myhtml.html^M
    Cookie: SUN_ID=129.147.37.51:287861225347735; s_vi=[CS]v1|48F6E7BF00000316-A02082200000556[CE]; nfTimeStamps=19700101000000%7C19700101000000%7C19700101000000; nfSettings=112101110%7C%7Cen_US%7C%7C0%7C60%7C-1%7C%7Cweek%7C-1%7C; location=US;
    s_cc=true; s_sq=%5B%5BB%5D%5D; AMAuthCookie=AQIC5wM2LY4SfczkxcjsoIVQbGnnqbFrqk8lWxYT1xzFVlE%3D%40AAJTSQACMDI%3D%23^M
    ^M
    <-- [
    HTTP/1.1 200 OK^M
    Server: Sun-Java-System-Web-Server/7.0^M
    Date: Fri, 07 Nov 2008 07:28:53 GMT^M
    Content-type: text/css^M
    Last-modified: Fri, 07 Nov 2008 07:20:29 GMT^M
    Etag: W/"277-4913ec3d"^M
    Content-encoding: gzip^M
    Vary: accept-encoding^M
    Transfer-encoding: chunked^M
    ^M
    165^M
    ^_\213^H^CU\222\301N\3030^L\206\357{
    ^K\256\313\2641!A8q^Z'^N^[/\3406nk-M\252$\355\250\320\336\2354)l\315\245\262^?\307\376?\247\205U#\374\254:T\212M-4UA\302nG\355[\314V\326^DQa\313z\224p \353j\3065<|qK^^>\351^BG\333\242yX\307\322|\222\262^FO\216\253\251Ai\265u^R\272\336u\232\246D\201\345\271v\2667J\314\332\243zQ\270Wp]\365zcp(\320%G\232}^P>\214\232D^X;\222`\254I-f\253^R\266S\324b4e\346\240\263\236^C\333^Xb\341\255\356C\272^Pl'\341)^S\315|9\270\260
    \215\204Wj\343\364f\227\306.\220?H^O^T\270\214\320^G24\304\357\273c\3247\340SoNh\2748R\335kt^Q}\212^R\377\202Hs\352~\303\227pi8\373\373G\330<G'\333%\343f\237\275^V\326)r\302q\335d\210\200\254\240\320\261\345b^T\246I\201\276\203PTZ\207y#\323\372b^]J\315\346\234J\346^G(t\237\205\201\343\366H\335k\371\341&U)G\336'-\373^Ui\255\363&\377~\237\373\334\3548\245B\303^F\224^MS\373\353j\365^K O\2450w^B^M
    0^M
    ^M
    ]

  • Content-Length missing in SOAP request

    In Oracle Application Server, a SOAP request like :
    POST /eai_esn/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSoap=1 HTTP/1.1
    SOAPAction: "document/http://siebel.com/marketing/import:MktgImportServiceInvokeImportJob"
    User-Agent: Axis2
    Host: 192.168.49.66:8093
    Transfer-Encoding: chunked
    Content-Type: text/xml; charset=UTF-8
    a28
    <?xml version='1.0' encoding='UTF-8'?>. . . . </soapenv:Envelope>
    0
    is rejected with an error like : "Missing body length ..."
    However , a SOAP request like :
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: "document/http://siebel.com/marketing/import:MktgImportServiceInvokeImportJob"
    User-Agent: Jakarta Commons-HttpClient/3.1
    Host: 192.168.49.58:8093
    Content-Length: 2602
    <?xml ...... >
    is accepted with no error .
    Using Microsoft IIS, the first SOAP request without the 'Content-Length' is accepted just fine.
    It looks like OAS requires SOAP header to have a "Content-Length" . Is this correct ? Is there a way to change this behavior ?
    Thank you
    Gabriel Gonzalez

    Hi,
    The web service we are trying to communicate with is a third-party service that we have no control over. This service requires the name of the attribute to be in the content id field.
    See section 3.8 of the following link
    http://www.ws-i.org/Profiles/AttachmentsProfile-1.0-2004-08-24.html
    I seem to be able to set the name, description, contentType in the SOAP adapter module I have written - but I cannot set the content-Id.
    Regards,
    Bryan

  • Wrong content length in response header, ICM

    Hello,
    When i checked in the SMICM log file i got the error message:
    [Thr 1085303104] *** ERROR => HttpClntHdlResponse: client: premature EOS (28980/59150) - wrong content length in response header
    Kindly let me know what may be the cause of this error.
    Kind regards
    Lutz

    Hi Raghu and Anil,
    here are some more information:
    Kernel-Release    700
    Compilation       Linux GNU SLES-9
    Patch-Level       201
    SAP_ABA     700     0019     SAPKA70019
    SAP_BASIS     700     0019     SAPKB70019
    PI_BASIS     2005_1_700     0019     SAPKIPYJ7J
    ST-PI     2008_1_700     0000          -
    SAP_BW     700     0021     SAPKW70021
    SAP_AP     700     0016     SAPKNA7016
    SAP_APPL     600     0015     SAPKH60015
    SAP_HR     600     0038     SAPKE60038
    ST-A/PI     01L_ECC600     0000          -
    ICM Parameter
    Services
    icm/server_port_0     = PROT=HTTP,PORT=8022
    icm/server_port_1     = PROT=SMTP,PORT=0
    Hard limits
    icm/max_services               = 30
    icm/listen_queue_len           = 512
    icm/req_queue_len              = 500
    icm/max_conn                   = 500
    icm/max_sockets                = 2048
    Thread handling
    icm/min_threads                = 10
    icm/max_threads                = 50
    icm/min_spare_threads          = 3
    Tracing and statistic
    rdisp/TRACE                    = 1
    icm/tracefile                  = dev_icm
    icm/log_level                  = 0
    icm/stat_level                 = 1
    icm/security_log               = LOGFILE=dev_icm_sec,MAXSIZEKB=500
    icm/accept_remote_trace_level  = 0
    Monitoring
    icm/ccms_monitoring            = 1
    icm/ccms_refresh_rate (sec.)   = 30
    Timeout handling
    icm/keep_alive_timeout (sec.)  = 60
    icm/conn_timeout (msec.)       = 5000
    HTTP settings
    icm/HTTP/max_request_size_KB   = 102400
    icm/HTTP/server_cache_0        = PREFIX=/, CACHEDIR=/usr/sap/PF1/DVEBMGS22/dat
    a/cache
    icm/HTTP/admin_0               = PREFIX=/sap/admin,DOCROOT=/usr/sap/PF1/DVEBMG
    S22/data/icmanroot/admin,AUTHFILE=/usr/sap/PF1/SYS
    icm/HTTP/auth_0                = PREFIX=/,FILTER=SAP
    HTTP(S) error handling
    is/HTTP/show_detailed_errors   = 1
    HTTPS (SSL) settings
    icm/HTTPS/verify_client        = 1
    ssf/name                       =
    ssf/ssfapi_lib                 =
    sec/libsapsecu                 =
    ssl/ssl_lib                    =
    Context Quotas
    icm/HTTP/context_quota         = 90%
    icm/HTTPS/context_quota        = 90%
    icm/SMTP/context_quota         = 90%
    Memory Pipe settings
    mpi/total_size_MB              = 80
    mpi/buffer_size                = 65536
    J2EE settings
    rdisp/j2ee_start               = 0
    is/HTTP/default_root_hdl       = J2EE
    Content Filter settings
    csi/enable                     = TRUE
    csi/SAP/csa_lib                = /usr/sap/PF1/DVEBMGS22/exe/libsapcsa.so
    Misc
    icm/host_name_full             = cipf122.ikk.local
    icm/cancel_strategy            = cancel requests without session (stateless)
    rdisp/plugin_auto_logout       = 1800
    is/HTTP/virt_host_0            = :;
    is/SMTP/virt_host_0            = :;
    Best regards
    Lutz

  • Display/content-length issue

    a custom java application merges an image to an PDF document and flattens it using iText. it sets the request header parameters through dynamic javascript and calls the adobe reader to flatten the PDF pages. after the process, the response application screen is not rendered completely. there seems to be delay before the response screen is displayed which is our concern. we suspect that incorrect content length may be a reason for this post process display issue. but, we do not set any content-length thru java.
    Q1. is there a way to remove the content-length from the response header?
    something like aHeaders for javascript. we wanted to know the syntax for aHeaders usage.
    Q2. has anyone faced a similar issue and found a fix for this issue?
    appreciate a response. thank you!

    Checkout send-error.So I can place a drective like this (assuming I have a 403.html file in that location):
    Error fn=send-error code=403 path=/opt/sun/webproxyserver/html/errors/403.html
    I assume I place this inside my Object definition for my template ... is that correct? I plan on placing it at the bottom of my template. Does its location in the Object definition matter? I am sorry but the docs are not real clear (at least to me) on hard details so forgive my questions.
    just for clarity is this a proper template definition(I have 3)?NameTrans fn="assign-name" name="BlackList" from="http://.*yahoo.*"
    NameTrans fn="assign-name" name="WhiteList-level1" from=".*://64\.215\.169\.*/.*|.*://.*gblx.net/.*"
    NameTrans fn="assign-name" name="WhiteList-default" from=".*://.*/.*"
    The one named BlackList is just for testing purposes (which I can't seem to get to work either.
    Isn't the following legal? When I have a template match it should go to this object and execute directives right? It should see and execute the deny-service right? Why is it not?
    <Object name="BlackList">
    Service fn="deny-service"
    Error fn=send-error code=403 path=/opt/sun/webproxyserver/html/errors/403.html
    </Object>
    thanks again
    Doug

  • Remove "content-length" item from the header of httpServletResponse

    Hi all,
    tomcat6.0, JDK5.0.
    I use tomcat6.0 as the web container and JDK version is 1.5.
    I found tomcat connector will add "content-length" item in all httpServletResponse header.
    But now I need generate some chunked http response.according the RFC, there should be no "content-length" item in the http header when response is chunked-encoding.
    So how can I remove the 'content-length" item from the httpServletResponse header?
    Thanks a lot!
    Rare

    one posting to a question, please:
    http://forum.java.sun.com/thread.jspa?threadID=5268921&tstart=0
    %

  • Contents of HTTP POST is ignored for http:binding

    Hi,
    We are calling a legacy system utilizing WSIF http:binding with the POST method.
    The input of the service is defined by a DTD which was transformed to the corresponding XSD. Generally it works, except that the called service returns a HTTP 201 (No Content) most likely due bpel includes the namescope of the passed message part. Furthermore the "Content-type" in the HTTP header is undefined (Content-type: null). The HTTP Log is attached below, the BPEL-Version is 10.1.3.1.
    Adding the following lines in the XSD (that solved similar problems with the adapters) have no effect:
    nxsd:version="DTD"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    The <input> of the <http:binding> is defined by <mime:mimeXml part="dataPart"/>
    How can BPEL-PM suppress the namescope that we get an XML like the following:
    <DATA>
    <ACTION NAME="Amount" VALUE="100"/>
    </DATA>
    Cheers,
    Lars
    HTTP-LOG
    ========
    POST /myservice HTTP/1.1
    Host: dev1.internal
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    wsdlLocation: Sample.wsdl
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: null
    Content-length: 494
    <DATA xmlns="http://bpel/ns">
    <ACTION NAME="Amount" VALUE="100"/>
    </DATA>
    HTTP/1.1 204 No Content
    Date: Mon, 12 Feb 2007 15:09:25 GMT
    Server: IBM_HTTP_Server/2.0.47.1 Apache/2.0.47 (Unix)
    Content-Language: de
    Cache-Control: private
    Content-Length: 0
    Content-Type: text/html;charset=UTF-8

    Hi,
    We are calling a legacy system utilizing WSIF http:binding with the POST method.
    The input of the service is defined by a DTD which was transformed to the corresponding XSD. Generally it works, except that the called service returns a HTTP 201 (No Content) most likely due bpel includes the namescope of the passed message part. Furthermore the "Content-type" in the HTTP header is undefined (Content-type: null). The HTTP Log is attached below, the BPEL-Version is 10.1.3.1.
    Adding the following lines in the XSD (that solved similar problems with the adapters) have no effect:
    nxsd:version="DTD"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    The <input> of the <http:binding> is defined by <mime:mimeXml part="dataPart"/>
    How can BPEL-PM suppress the namescope that we get an XML like the following:
    <DATA>
    <ACTION NAME="Amount" VALUE="100"/>
    </DATA>
    Cheers,
    Lars
    HTTP-LOG
    ========
    POST /myservice HTTP/1.1
    Host: dev1.internal
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    wsdlLocation: Sample.wsdl
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: null
    Content-length: 494
    <DATA xmlns="http://bpel/ns">
    <ACTION NAME="Amount" VALUE="100"/>
    </DATA>
    HTTP/1.1 204 No Content
    Date: Mon, 12 Feb 2007 15:09:25 GMT
    Server: IBM_HTTP_Server/2.0.47.1 Apache/2.0.47 (Unix)
    Content-Language: de
    Cache-Control: private
    Content-Length: 0
    Content-Type: text/html;charset=UTF-8

Maybe you are looking for

  • I cannot download my cds to my itunes account., the dialog box does not appear

    I am trying to download my cds into my itunes account. When I put the cd into the frive, I do not get the dialog box popping up to ask me if I want to import it. I looked in my preferenes and switched it back and forth from automatic to manual, and s

  • SAP Strategy management and Netweaver installation

    Hi experts, i want to install SAP strategy management 10.0 on windows for SQL Server. I was reading through the installation guide and one of its prerequisite is to install netweaver and also deploying FCP  and other components. Below is the files i

  • How do I add songs from my iPod to my iTunes

    How do I add songs from my iPod to my iTunes??

  • J1IEX Item Level data Duty values Tab Screen

    Hallow Experts, In J1IEX - Capture / Post / Cancel Excise invoices transaction > Item Level data > duty values tab screen, System displays following information Excise duty Base Amount – Basic material Amount on which excise tax amount is calculated.

  • No Safari Bookmarks Preview Images

    Hi, some of my Safari Bookmarks in Cover Flow Modus don't show a preview image. They just seem to get lost from time to time. And I always had this problem. With every OS and Safari, no matter which version. How can I assure to always have preview im