curl-library
https put on macosx returns 500 [was curlopt_verbose does not output any msgs]
Date: Tue, 22 Sep 2009 14:07:28 +0530
>
>
> i am still unable to figure out why the sending takes a huge amount of
>> time
>>
>
> Are you saying the 470K of data should be faster to send than what you
> manage?
>
> and is never completed
>>
>
> It looks "completed" to me. The connection is closed fine.
I put some traces in the progress callback along with some timing formation.
Start do upload
7.19.3 OpenSSL/0.9.7l
The file size is 475136
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:16384
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:32768
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:49152
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:65536
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:81920
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:98304
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:114688
Progress callback - Ts:0 , Total Bytes:475136, Bytes Done:131072
Progress callback - Ts:1 , Total Bytes:475136, Bytes Done:131072
Progress callback - Ts:1 , Total Bytes:475136, Bytes Done:131072
Progress callback - Ts:1 , Total Bytes:475136, Bytes Done:131072
Progress callback - Ts:2 , Total Bytes:475136, Bytes Done:147456
Progress callback - Ts:2 , Total Bytes:475136, Bytes Done:147456
Progress callback - Ts:2 , Total Bytes:475136, Bytes Done:147456
Progress callback - Ts:2 , Total Bytes:475136, Bytes Done:163840
Progress callback - Ts:2 , Total Bytes:475136, Bytes Done:163840
Progress callback - Ts:2 , Total Bytes:475136, Bytes Done:163840
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:180224
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:180224
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:196608
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:196608
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:212992
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:212992
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:212992
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:229376
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:229376
Progress callback - Ts:3 , Total Bytes:475136, Bytes Done:229376
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:245760
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:245760
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:245760
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:262144
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:262144
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:262144
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:278528
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:278528
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:278528
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:294912
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:294912
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:294912
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:311296
Progress callback - Ts:4 , Total Bytes:475136, Bytes Done:311296
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:311296
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:327680
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:327680
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:327680
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:344064
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:344064
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:344064
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:360448
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:360448
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:360448
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:376832
Progress callback - Ts:5 , Total Bytes:475136, Bytes Done:376832
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:376832
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:393216
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:393216
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:393216
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:409600
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:409600
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:409600
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:425984
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:425984
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:425984
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:442368
Progress callback - Ts:6 , Total Bytes:475136, Bytes Done:442368
Progress callback - Ts:7 , Total Bytes:475136, Bytes Done:442368
Progress callback - Ts:7 , Total Bytes:475136, Bytes Done:458752
Progress callback - Ts:7 , Total Bytes:475136, Bytes Done:458752
Progress callback - Ts:7 , Total Bytes:475136, Bytes Done:458752
Progress callback - Ts:7 , Total Bytes:475136, Bytes Done:474684
Progress callback - Ts:7 , Total Bytes:475136, Bytes Done:474684
Progress callback - Ts:8 , Total Bytes:475136, Bytes Done:474684
Progress callback - Ts:9 , Total Bytes:475136, Bytes Done:474684
Progress callback - Ts:10 , Total Bytes:475136, Bytes Done:474684
---- snip--------
Progress callback - Ts:309 , Total Bytes:475136, Bytes Done:474684
lcurlret is 0
upload returned http return code of 500
End do upload
The entire data is never sent across. The data sending stops at 474684 and
does not proceed further.
The connection is closed after a huge amount of time roughly 300 secs or so.
>
> The funny part is the same code without any change works fine on windows
>> xp using the same version of libcurl but fails on mac os x.
>>
>
> Are they using the same libcurl versions? Do they send identical requests?
>
Both windows and mac libcurl versions are 7.19.3 compiled with libssh and
openssl support. The same request are sent and the msgs output by curl when
verbose is set to on are same except for the final http status code which is
200 on windows and 500 on mac.If required i can post the output of
curlopt_verbose when the program is run on windows.
Thanks,
Gokul
-- Better to get up late and be wide awake than to get up early and be asleep all day.Received on 2009-09-22