cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Unable to upload files of large size in Unix

From: Salgar, Gowtam <Gowtam_Salgar_at_adp.com>
Date: Fri, 2 May 2008 15:09:13 -0400

I have the -v option enabled and I dont have any errors on it. It just doesnt upload. Here is the script part. /usr/bin/curl -o /test/test_step7.htm -b /test/cookie -c /test/cookie -v -i -k -L -e https://xyz.com/test/test.aspx -A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" -F "</test/output/VIEWDATA_STEP7;type=text/html" -F btnWageUpload="Upload CSV File" -F inpWageUpload="@/test/test.csv" --limit-rate 500B https://xyz.com/test/test.aspx I tried putting the --limit-rate just to slow down the upload process as AIX upload was very fast. But this doesnt work too. I have pasted the moniter logs below. Content-Length: 5468907 > Expect: 100-continue > Content-Type: multipart/form-data; boundary=----------------------------98a73d2d38f7 > % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 5340k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0< HTTP/1.1 100 Continue 96 5340k 0 0 96 5168k 0 216k 0:00:24 0:00:23 0:00:01 235k< HTTP/1.0 302 Found I am redirected to error page after this. Strage thing I find is the upload % never reaches 100% for this big file. But it does in windows. I have pasted the moniter for windows below. > Content-Type: multipart/form-data; boundary=----------------------------66d52070add6 > % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 5340k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0} [data not shown] < HTTP/1.1 100 Continue } [data not shown] 100 5340k 0 0 100 5340k 0 118k 0:00:45 0:00:45 --:--:-- 0* HTTP 1.0, assume close after body ________________________________ From: curl-users-bounces@cool.haxx.se [mailto:curl-users-bounces@cool.haxx.se] On Behalf Of Arthur Sent: Friday, May 02, 2008 5:01 AM To: the curl tool Subject: Re: Unable to upload files of large size in Unix add the -v argument to your curl ... command to see more detailed error logs ----------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
Received on 2008-05-02