cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-826813 ] curl ignores Content-Disposition: attachment

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 20 Oct 2003 05:06:44 -0700

Bugs item #826813, was opened at 2003-10-20 05:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=826813&group_id=976

Category: client module
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: curl ignores Content-Disposition: attachment

Initial Comment:
hello,
i found some bug / or a thing which curl don't understand
yet:

this is what i do:
- form data are passed using curl.exe to
asp script
- it returns such header:

HTTP/1.0 200 OK
Server:
Microsoft-IIS/5.0
Date: Mon, 20 Oct 2003 11:11:11 GMT
Content-
Disposition: attachment;filename=test.txt
Content-Length:
12
Content-Length: 6028
Content-Type: application/x-
msdownload
Set-Cookie:
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; path=/
Cache-
control: private

- curl should download and store file
"test.txt" (i
use the -O option), but it stores
scriptname.asp
instead and both html response (size 6028b) and
file
attachment (size 12b) are concatenated together :-
(

script works fine under ie and opera.

i'm not header
expert, but the fact that both browsers
interpret response
correctly says me, that there's
something wrong with
curl.

thank you for your great work,
myiang.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=826813&group_id=976

-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
Received on 2003-10-20