cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Content-Disposition: Attachment;

From: Claudio_Unige <claudiounige_at_gmail.com>
Date: Thu, 17 Jun 2010 08:55:08 +0200

On Thu, Jun 17, 2010 at 4:00 AM, Jeff Pohlmeyer <yetanothergeek_at_gmail.com>wrote:

> On Wed, Jun 16, 2010 at 8:15 AM, Claudio_Unige wrote:
>
> > You are correct, but the problem is not the file name but the fact that
> in
> > my code I only retrieve the webpage being sent and not the attachment,
> > therefore I dont have the file.
>
> It could be that the server is responding differently to libcurl for
> some other reason. Are you sure you are replicating all the other
> request fields accurately? User-Agent, Referer, Cookie, etc...
>
> - Jeff
>

I tested with wget and it didnt work: apparently the server wasnt happy with
the user-agent. All requests dont retrieve the attachment unless the
user-agent is of a browser. I changed the User Agent to Mozilla... and it
works.

Thanks.

-Claudio

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET