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.

Similar Messages

  • URGENT! File Upload Utility or a Custom UI for File Upload is needed!

    Hi all,
    I'm trying to find or develop a file upload utility or custom user interface rather than editing and adding file type item to a page. There is a free portlet for file upload in Knowledge Exchange resources, but it is for 3.0.9 release. I'm using portal 9.0.2.
    I could not any sample about the new release. Also API such as wwsbr_api that is used to add item to content areas is out dated.
    I create a page with a region for "items". When "edit" page and try to add an "file" type item the generated url is sth like this;
    "http://host:7779/pls/portal/PORTAL.wwv_additem.selectitemtype****"
    After selecting item type as a simple file autogenerated url is sth. like ;
    "http://host:7779/pls/portal/PORTAL.wwv_add_wizard.edititem"
    I made search about these API but could not find anything (in PDK PL/SQL API help, too).
    I need this very urgent for a proof of consept study for a customer.
    Thanks in advance,
    Kind Regards,
    Yeliz Ucer
    Oracle Sales Consultant

    Answered your post on the General forum.
    Regards,
    Jerry
    PortalPM

  • BI IP --- Planning function for File Upload

    Hai All,
    In BI IP , When I am trying to load the data (text file) by using Planning function for File Upload. I am getting an error message When I am clicking on Update .
    Error Message : Inconsistent input parameter (parameter: <unknown>, value <unknown>).
    In Text file I am using Tab Separation for each value
    Anyone help me out.
    Thanks,
    Bhima

    Hi Bhima
    Try one of these; it should work:
    1. If you are on SP 14 you would need to upgrade to SP 15. It would work fine
    2. If not, then -
         a] apply note 1070655 - Termination msg CL_RSPLFR_CONTROLLER =>GET_READ_WRITE_PROVIDS
         b] Apply Correction Instruction 566059 [i.e: in Object - CL_RSPLFR_CONTROLLER GET_READ_WRITE_PROVIDS,
    delete the block: l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = p_infoprov ).
    and insert block - l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = i_infoprov ).
    Goodluck
    Srikanth

  • ALBPM 6.0 : The maximum size for file uploads has been exceeded.

    Hi,
    I use AquaLogic BPM Entreprise server to deploy my Process. When I try to publish a process on my server I get the following error:
    An unexpected error ocurred.
    The error's technical description is:
    "javax.servlet.jsp.JspException: null"
    Possible causes are:
    The maximum size for file uploads has been exceeded.
    If you are trying to publish an exported project you should publish it using the remote project option.
    If you are trying to upload the participant's photo you should choose a smaller one.
    An internal error has ocurred, please contact support attaching this page's source code.
    Has someone resolve it?
    Thank's.

    Hi,
    Sure you've figured this out by now, but when you get the "Maximum size for file uploads" error during publish consider:
    1. if your export project file is over 10mb, use "Remote Project" (instead of "Exported Project") as the publication source. That way when you select the remote project, you will point to ".fpr" directory of the project you are trying to publish.
    Most times your project is not on a network drive that the server has access to. If this is the case, upload the .exp file to the machine where the Process Administrator is running, then expand it in any directory (just unzip the file). Then, from the Process Administrator, use the option to publish a Remote Project by entering the path to the .fpr directory you just created when unzipping the project.
    2. Check to see if you have cataloged any jars and marked them as non-versionable. Most of the times the project size is big just because of the external jar files. So as a best practice, when you do a project export select the option "include only-versionable jars", that will get reduce the project size considerably (usually to Kb's). Of course you have to manually copy the Jar files to your Ext folder.
    hth,
    Dan

  • When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says: The request for account "iCloud" failed.  The server responded with "502" to operation CalDAVSetPropertyQueueableOperation. Help!!??

    When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says:
    The server responded with “502”
    The request for account “iCloud” failed. 
    The server responded with “502” to operation CalDAVSetPropertyQueueableOperation.
    The request for account “iCloud” failed.
    I am then given the option of staying Online or going Offline.
    Can anyone help me?
    thanks

    Hello b.krushel,
    Thank you for using Apple Support Communities
    Any number of things could cause this issue, so I would recommend this article named iCloud: Troubleshooting iCloud Calendar found here http://support.apple.com/kb/TS3999.
    These sections in particular:
    General Troubleshooting
    Make sure there are no current issues listed on the System Status that affect iCloud Calendar. The System Status is located on the iCloud Support webpage.
    Make sure you have fully enabled iCloud Calendar for the client you are using (for more setup and troubleshooting information on iOS, OS X, Windows and iCloud.com, see the additional details below).
    Check to see if the issue you are seeing is covered in iCloud Help. To search iCloud Help, visit help.apple.com/icloud.
    Check your settings and preferences as something may not be set up correctly. For example, having incorrect date and time settings can cause issues which are easily resolved by entering the appropriate settings.
    Troubleshooting Calendar on OS X Mountain Lion (iCal on OS X Lion)Note: For instructions on setting up iCloud Calendar with Calendar or iCal on your Mac, see iCloud Setup.If you are having trouble with Calendar or iCal on a Mac and you are using iCloud Calendar, try each of these steps, testing after each to see if the issue is resolved:
    Make sure you are using OS X Lion v10.7.2 or later. Click here for help verifying the version of OS X you are using.
    Make sure your computer is online. Attempt to view www.apple.com and iCloud.com. If you can't connect to the Internet, your iCloud calendars and events will not update in iCal. Click here for more information about troubleshooting your Internet connection.
    Verify that your iCloud member name is entered into the iCloud Preference pane in System Preferences. See iCloud Setup for more information about setting up iCloud on a Mac.
    Make sure you enter and update calendar information in the iCloud section of Calendar or iCal. Only calendars and events in the iCloud section of the Calendar or iCal Calendar list will be pushed to iCloud. Both Calendar and iCal for the Mac support the display of and interaction with multiple accounts and datastores, for example, iCloud, On My Mac, Exchange, Google, and so on. This makes it easy to create or modify events or calendars in a section of  Calendar or iCal that may not be updating iCloud. Learn more about moving local calendars to iCloud.
    In some cases, you may find that you have data duplicated in both the local On My Mac and the iCloud sections of Calendar or iCal. Learn more about resolving this issue.
    You can make the iCloud calendar your default calendar for all new events. In Calendar on OS X Mountain Lion, choose Calendar > Preferences > General, or in OS X Lion, choose iCal > Preferences > Generaland under the Default Calendar heading, select one of the Calendars under the iCloud heading. Close the Preferences window to save this change.
    If recent changes simply don't appear, try forcing Calendar or iCal to refresh by selecting Refresh All from theCalendar menu.
    Make sure your account was successfully created in Calendar on your Mac (or iCal). After upgrading to iCloud Calendar, you may need to quit and reopen Calendar (or iCal). To confirm your account is configured correctly in iCal:
    Open Calendar (or iCal).
    Open Calendar (or iCal) Preferences.
    Click Accounts. You should see an account with your iCloud member name entered.
    Turn iCloud Calendars off and back on
    Quit Calendar (or iCal).
    Choose Apple () menu > System Preferences > iCloud.
    Remove the checkmark in the checkbox next to Calendars.
    Close System Preferences and wait about a minute.
    Open System Preferences and choose iCloud.
    Replace the checkmark next to Calendars.
    Close System Preferences.
    Open Calendar (or iCal) and test to see if the issue has been resolved.
    Restart your computer. This may sound simple, but it does reinitialize your network and application settings and can frequently resolve issues.
    Take care,
    Sterling

  • The request for account "iCloud" failed.  The server responded with "400" to operation CalDAVAddSubscriptionCalendarQueueableOperation

    Does anyone know how to fix this problem?  Or even what the problem is?  I am trying to subscribe to a calendar and every time I do, it gives me this response:
    The request for account “iCloud” failed.
    The server responded with
    “400”
    to operation CalDAVAddSubscriptionCalendarQueueableOperation
    Any help would be fantastic.  This is a course calendar, and I really need it.
    Thank you!

    Keep away from iCloud and keep away from iCal. This is the most reliable solution to these 403 issues.
    The Mac cannot upload calendars and keeps popping up error messages with an insane frequency.

  • The server responded with an error. The request for account "Yahoo" failed. The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation

    The server responded with an error. The request for account "Yahoo" failed. The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation

    I am tired of how Yahoo has gotten worse and worse. It is the ONLY account I get problems with DAILY (even after removing and re-adding). AOL will act up once in a while not taking a saved password but accepting it when OK is clicked.... But Yahoo is always responding with such errors.... Today's calendar error is:
    The request (CalDAVAccountRefreshQueueableOperation) for account “Yahoo” failed.

  • What is causing this message? The request for account "iCloud" failed.  The server responded with "509" to operation CalDAVMigrateToServerQueueableOperation.

    What is causing this message. Occurs on both Mini and MacBook Pro.
    The request for account “iCloud” failed.
    The server responded with
    “509”
    to operation CalDAVMigrateToServerQueueableOperation.

    Follow the links given in the right panel, under "More Like This", they should provide answers.

  • The request for account "iCloud" failed.  The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation.

    The request for account “iCloud” failed.
    The server responded with
    “502”
    to operation CalDAVAccountRefreshQueueableOperation.

    I am having the same annoying problem. Suggest it is a Cloud issue.

  • The request for account "iCloud" failed.  The server responded with "400" to operation CalDAVUpdateShareesQueuableOperation.

    The request for account “iCloud” failed.
    The server responded with
    “400”
    to operation CalDAVUpdateShareesQueuableOperation.

    Try this first:
    In iCal Preferences…, choose Accounts, then select the account that is giving you trouble. Uncheck the box labeled Enable this account. Wait a few seconds, then re-check the box. This should solve the problem.

  • Hi Has anyone had this error message from iCal?  The request for account "Work" failed.  The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation.

    I keep getting this message whenever i am connected to iCal which is a tad annoying.
    The request for account “Work” failed.
    The server responded with
    “502”
    to operation CalDAVAccountRefreshQueueableOperation.
    Please help!
    pippilaing (NZ)

    What I found works best is to do the following:
    Quit iCal on you
    Go to iCloud.com and sign-in
    Create an event on the calendar
    Sign-out of iCloud.com
    Relaunch iCal
    It will take a few seconds for the calender to resync, but you should see the new event pop up on the calender. After that, hopefully all is well.

  • Error message: The request for account "iCloud" failed.  The server responded with "400" to operation CalDAVUpdateShareesQueuableOperation.

    I created a new public iCAL. Trying to send invitations to join and am receiving this error message:
    The request for account “iCloud” failed.
    The server responded with
    “400”
    to operation CalDAVUpdateShareesQueuableOperation.
    Tried copying the URL link provided for the Calendar into a MailChimp announcement.  Not working.
    I've tried the uncheck calendar method on iCLOUD and re-checking to stop the pop-up message.
    Is this perhaps because they don't have an iCLOUD account? If they have iTUNES, shouldn't it work?
    Appreciate any help. 

    Try this first:
    In iCal Preferences…, choose Accounts, then select the account that is giving you trouble. Uncheck the box labeled Enable this account. Wait a few seconds, then re-check the box. This should solve the problem.

  • TS3999 calandar on my macpro says its off an when I try to take it online I get this message: The request for account "iCloud" failed.  The server responded with "507" to operation CalDAVAddCalendarQueueableOperation.

    My calandar on mac pro isn't online, when I try to take it online it says:
    The request for account “iCloud” failed.
    The server responded with
    “507”
    to operation CalDAVAddCalendarQueueableOperation.
    How do I fix it? It's not syncing with my phone or ipad or icloud online. Thanks

    In System Preferences>iCloud, click the account button, log off then back on.

  • TS3999 Need help! I get this message; The request for account "iCloud" failed.  The server responded with "400" to operation CalDAVUpdateShareesQueuableOperation.

    Why do I get this message? It drives me crazy and I can not find any support in the support pages...
    The request for account “iCloud” failed.
    The server responded with
    “400”
    to operation CalDAVUpdateShareesQueuableOperation.

    Follow the links given in the right panel, under "More Like This", they should provide answers.

  • Emulating HTTP POST for file upload with J2ME

    I have search through a lot of site and couldn't find the actual code. I try to emulate below html with J2ME.
    <form method="POST" enctype="multipart/form-data" action="Insert.asp">
    <td>File :</td><td>
    <input type="file" name="file" size="40"></td></tr>
    <td> </td><td>
    <input type="submit" value="Submit"></td></tr>
    </form>
    here is my code :
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    byte[] filecontent = file byte content ...
    try {
    c = (HttpConnection)Connector.open("http://xx.com/insert.asp");
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("Content-Length", String.valueOf(cmg.length + 15));
    c.setRequestProperty("Content-type","multipart/form-data");
    os = c.openOutputStream();
    os.write("file=c:\\abc.png".getBytes());
    os.write(filecontent);
    os.flush();
    I can emulate form with text field and it work, but when it come to file upload, above code not working, I don't know what to put for the outputstream, filename ? content ? or both ? since the html only has one field that is the "file" field. The file is actually store in rms with filename abc.png, and I just put in the c:\ for the server as a dump path.

    File upload is more complicated then that... you need multi-part MIME formatting.... But I have just the code...
    http://forum.java.sun.com/thread.jspa?forumID=256&threadID=451245

Maybe you are looking for

  • ALV report - copy layout to another user

    Hello, I have a question about ALV reports. In ALV we have option to select layout and save it by user-specific. How to copy this layout to another user? Is there some function/Bapi? Thanks in advance, Michal

  • Dial-up access on 2851

    disregard conversation

  • Can I place a button within a specific html table cell?

    Hi folks, Subject says it all, I'm trying to place a button in a specific table cell, and don't know how to do it. It's weird that apex has all of the items that you can code directly using apex_item, but not a button. Am I missing something simple?

  • Anyway to register user defined org.omg.PortableInterceptor.ClientRequestInterceptor?

    For websphere 5.0 and up version, it's easy to register use defined interceptor to ORB request broker list. For example, in server.xml of websphere server configuration file, <services xmi:type="orb:ObjectRequestBroker" .. > <interceptors xmi:id="Int

  • Creative Cloud installs twice

    I work with windows 8 64 bit. After installing creative cloud desktop I have downloaded and installed; Acrobat XI Pro Illustrator CC Indesign CC Photoshop CC When I check this in programs and features I see two installations of Acrobat XI Pro (That's