cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: downloading zip file via aspx page

From: Claudio_Unige <claudiounige_at_gmail.com>
Date: Wed, 16 Jun 2010 11:04:19 +0200

On Wed, Jun 16, 2010 at 10:18 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 16 Jun 2010, Claudio_Unige wrote:
>
> Sorry I must have messed up, there is no actual popup in the html or
>> javascript code, it is as if the server after the html page sends more stuff
>> (I dont know aspx at all). I believe it is something like a request with
>> type octet stream... Unfortunately I cannot be more precise since I really
>> dont know aspx nor have the source available.
>>
>
> As usual, you can just snoop what your browser does with a plugin such as
> LiveHTTPHeaders or similar, and then you mimic those requests (closely) with
> libcurl.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

Hi,
I didnt know LiveHTTPHeader, I just used wireshark. Now everything is
clearer the website is sending:

Content-Disposition: Attachment; filename="myfile.zip"

At least I understood how it works now Ill go through the libcurl docs to
see how to retrieve that file and save it in memory or in a File pointer.

Thanks
-Claudio

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-16