cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] Problems downloading binary files to memory

From: Nazario Cipriani <NazarioCipriani_at_web.de>
Date: Sun, 24 Apr 2005 23:29:18 +0200

Jean-Philippe Barrette-LaPierre wrote:
> On April 22, 2005 11:30 am, Jean-Philippe Barrette-LaPierre wrote:
>
>>On April 22, 2005 09:39 am, Nazario Cipriani wrote:
>>
>>>The code only doesn't work for the attached file (glider.ive)!
>>>It's a binary osg (OpenSceneGraph) description.
>>
>>I tried it, and you're right. I'll check this tonight.
>
>
> Add the cURLpp::Options::Verbose(true) to the handle, and send me the output.
> When I test it, I receive the code "HTTP/1.1 403 Forbidden", and then, the
> "HTTP/1.1 403 Forbidden" web page. Is it the same for you?
>

Sorry for the long time a needed for the answer.

Well, I don't get a 403 but that all is OK.

Before the download seemed to interrupt.
But this is really strange since when I posted this problem the download
  of this particular file didn't work.

Since I built in the debug callback it seems to work now.
But I really don't understand why... I changed nothing else.

Here is the output I get when downloading that file (glider.ive):

About to connect() to xxx.yyy.zzz.www port 80
   Trying xxx.yyy.zzz.www... connected
Connected to xxx.yyy.zzz.www (xxx.yyy.zzz.www) port 80
GET /TMP/osg_files/glider.ive HTTP/1.1
User-Agent: libcurl-agent/1.0
Host: xxx.yyy.zzz.www
Pragma: no-cache
Accept: */*

様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様HTTP/1.1
200 OK
Server: aws/0.97
Date: Sun, 24 Apr 2005 20:27:31 GMT
Content-Type: binary/ive
Last-Modified: Wed, 20 Apr 2005 15:34:34 GMT
Content-length: 17240
6=b-~?B=b{=sL~?
瘻=況==+}?#M=Ic=HS}?$'>3=鳫{?y>頃=!#|?@->D=9|z?3>s禄b{<2~?Ow~∞Fv?`i
7柔?,e照羶集Yx?芬I曙龜蕊?_K掌葎y?/昭{ゼ`匠F?uOConnection
#0 to host xxx.yyy.zzz.www left intact

All seems to be fine?!

What do you think?

Ragards, Nazario.
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-04-24

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET