cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curlopt_verbose does not output any msgs

From: Gokul Krishna <pgokul_at_gmail.com>
Date: Fri, 18 Sep 2009 13:29:14 +0530

Thanks Kamil for that option.setting CURLOPT_STDERR printed some
information. But i am still unable to figure out why the sending takes a
huge amount of time and is never completed but a 500 error is returned from
the server.
I first issue a post request and then a put request. The post succeeds but
the put request fails. 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.

The logs from curl are

------------------------------------------------------------------------------------------------------------
* About to connect() to my.adobe.acrobat.com port 443 (#0)
* Trying 216.104.214.100... * connected
* Connected to my.adobe.acrobat.com (216.104.214.100) port 443 (#0)
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: C=US, ST=California, L=San Jose, O=Adobe Systems Incorporated,
OU=Internet Infrastructure, CN=admin.adobe.acrobat.com
* start date: 2008-09-12 00:00:00 GMT
* expire date: 2010-09-17 23:59:59 GMT
* issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign
International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref.
LIABILITY LTD.(c)97 VeriSign
* SSL certificate verify result: self signed certificate in certificate
chain (19), continuing anyway.
> POST
/publish/send?doc-id=518613777&key=518613777&publisher-version=2.0.1&sco-id=518613777&session=ar1breezpra7d7y6xuid2e5s
HTTP/1.1

Host: my.adobe.acrobat.com

Accept: */*

Content-Length: 1184

Content-Type: application/x-www-form-urlencoded

* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK

< Set-Cookie: BREEZESESSION=ar1breezpra7d7y6xuid2e5s;HttpOnly;domain=.
adobe.acrobat.com;path=/

< Set-Cookie: BREEZESESSION=ar1breezpra7d7y6xuid2e5s;HttpOnly;domain=.
adobe.acrobat.com;path=/

< Set-Cookie: BREEZESESSION=ar1breezpra7d7y6xuid2e5s;HttpOnly;domain=.
adobe.acrobat.com;path=/

< Date: Fri, 18 Sep 2009 07:39:58 GMT

< Content-Length: 104

< Content-Type: application/x-delta-checksums

< Connection: close

< Server: JRun Web Server

<

* Closing connection #0
----------------------------------------------------------------------------------------------------------------------------

The put request is

* About to connect() to my.adobe.acrobat.com port 443 (#0)
* Trying 216.104.214.100... * connected
* Connected to my.adobe.acrobat.com (216.104.214.100) port 443 (#0)
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: C=US, ST=California, L=San Jose, O=Adobe Systems Incorporated,
OU=Internet Infrastructure, CN=admin.adobe.acrobat.com
* start date: 2008-09-12 00:00:00 GMT
* expire date: 2010-09-17 23:59:59 GMT
* issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign
International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref.
LIABILITY LTD.(c)97 VeriSign
* SSL certificate verify result: self signed certificate in certificate
chain (19), continuing anyway.
> PUT
/publish/send?doc-id=518613777&key=518613777&publisher-version=2.0.1&sco-id=518613777&session=ar1breezpra7d7y6xuid2e5s
HTTP/1.1

Host: my.adobe.acrobat.com

Accept: */*

Content-Encoding: application/x-ppsupload-delta

Content-Length: 471040

< HTTP/1.1 500 Internal Server Error

< Set-Cookie: BREEZESESSION=ar1breezpra7d7y6xuid2e5s;HttpOnly;domain=.
adobe.acrobat.com;path=/

< Set-Cookie: BREEZESESSION=ar1breezpra7d7y6xuid2e5s;HttpOnly;domain=.
adobe.acrobat.com;path=/

< Date: Fri, 18 Sep 2009 07:45:09 GMT

< Transfer-Encoding: chunked

< Content-Language: en-US

< Content-Type: text/html

< Connection: close

< Server: JRun Web Server

<

* Closing connection #0

Any suggestions???

Thanks,
Gokul

On Thu, Sep 17, 2009 at 9:48 PM, Kamil Dudka <kdudka_at_redhat.com> wrote:

> On Thu September 17 2009 17:04:59 Gokul Krishna wrote:
> > Hi,
> > i am running libcurl 7.19.3 compiled with openssl and libssh2 support on
> a
> > mac os x 10.5 machine.
> > I am trying to upload a file to a https url using put. The upload is
> never
> > finished and seems to hang.
> > i tried setting curlopt_verbose to 1 to see if i could figure out
> > something. However no information is printed by setting it.
> >
> > This curl library is not compiled with debug information. Does this
> affect
> > the behaviour of the verbose option?
>
> Not sure. But the verbose output should be definitely available even
> without
> the debug information. The verbose output is sent to standard error output
> by
> default. Are you able to print anything else to stderr? You can try to
> route
> the verbose output to another file by the CURLOPT_STDERR option:
>
> http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTSTDERR
>
> Kamil
>

-- 
Better to get up late and be wide awake than to get up early and be asleep
all day.
Received on 2009-09-18