cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-725785 ] content-type when redirected

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 22 Apr 2003 12:02:47 -0700

Bugs item #725785, was opened at 2003-04-22 19:02
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=725785&group_id=976

Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: David Croft (davidcroft)
Assigned to: Daniel Stenberg (bagder)
Summary: content-type when redirected

Initial Comment:
curl 7.9.5 (i586-pc-linux-gnu) libcurl 7.9.5 (OpenSSL
0.9.6c) (ipv6 enabled)

when curling a URL with FOLLOWLOCATION set, the
Content-Type returned from curl_getinfo is the content-
type of the original url (that caused a redirection) rather
than the final url

e.g.

HTTP/1.1 302 Found
Date: Tue, 22 Apr 2003 18:55:02 GMT
Server: Apache/1.3.20 (Unix) Resin/2.0.5
Location: http://www.excite.com
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 200 OK
Date: Tue, 22 Apr 2003 18:55:03 GMT
Server: Apache/1.3.20 (Unix) Resin/2.0.5
Pragma: no-cache
Cache-control: private
Expires: Sat 02 Apr 1977 17:15:00 GMT
Vary: Accept-Encoding
Set-Cookie: uu=i=198.77.14.38-1051037703335MJ;;
Domain=.excite.com; Path=/; Exp\
ires=Mon, 15-Apr-2013 14:55:03 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

this should return content type 'text/html' but instead
returns 'text/html; charset=iso-8859-1' of the original url

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

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

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-22