cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: XML File Upload - Help !

From: <acpark_at_surefish.co.uk>
Date: Mon, 4 Aug 2008 09:40:50 +0100 (BST)

Dan,

Thank you, the -0 option fix the problem.

Cheers,
Andrew.

> On Fri, Aug 01, 2008 at 09:46:00AM +0100, acpark_at_surefish.co.uk wrote:
>> I am new to curl and trying to upload a file to a remote server and have
>> come across a 4kb limit to the file size. Having viewed the trace files
>> showing the file that I send and the error file I get in return, I am
>> thinking that the file being sent should be chunked and this is not
>> happening. Is there a way of setting the chunk/buffer size ?
>
> I don't think that's the problem.
>
>> I am using version 7.18.2 on sparc solaris. Command line -
>> /usr/lib/local/bin/curl -v -k -d @export.xml -H "Content-Type: text/xml"
>> -u username:password "https://URL/Upload.ws"
>>
>> The relevant portion of the -v trace is as follows -
>>
>> > Content-Type: text/xml
>> > Content-Length: 4283
>> > Expect: 100-continue
>> >
>> < HTTP/1.1 100 Continue
>> < Server: Orion/2.0.7
>> < Date Fri, 01 Aug 2008 08:29:19 GMT
>> < HTTP/1.1 500 Internal Server Error
>> < Server: Orion/2.0.7
>> < Connection Close
>> < Content-Type: text/xml;charset="utf-8"
>> < Transfer-Encoding: chunked
>
> It looks like the server isn't handling the 100-continue properly. curl
> switches to using 100-continue when the post is larger than a few KB, so
> that's probably the difference you're seeing. Try disabling this by
> switching to HTTP 1.0 mode with the -0 switch or disabling the Expect:
> header with -H Expect:
>
>>>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address
> service
> Let webmasters know that your web site has moved
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
> ______________________________________________
> This email has been scanned by Netintelligence
> http://www.netintelligence.com/email
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-04