cURL / Mailing Lists / curl-users / Single Mail

curl-users

[Bug #129815] On NT, redirection changes POST to GET

From: <noreply_at_sourceforge.net>
Date: Tue, 23 Jan 2001 08:38:03 -0800

Bug #129815, was updated on 2001-Jan-23 08:38
Here is a current snapshot of the bug.

Project: curl
Category: http
Status: Open
Resolution: None
Bug Group: wrong behaviour
Priority: 5
Submitted by: hg0
Assigned to : nobody
Summary: On NT, redirection changes POST to GET

Details: curl version 7.5.2 on Windows NT 4.0. Here's the output. To
protect some confidential information I changed the last part of
the URL to XXX and changed the actual data to ellipses (...).

curl -v -L -d @listtimezones7.xml http://www.placeware.com/XXX

...
* Connected to wwa.placeware.com (64.41.193.250)
> POST /XXX HTTP/1.0
User-Agent: curl/7.5.2 (win32) libcurl 7.5.2
Host: www.placeware.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 147
Content-Type: application/x-www-form-urlencoded

...
* Follow to new URL: http://www3.placeware.com/XXX
  % Total % Received % Xferd Average Speed Time
Curr.
                                 Dload Upload Total Current Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:00:00 --:--:--
 0
* Follows Location: to new URL: 'http://www3.placeware.com/XXX'
* Connected to ofa.ops.placeware.com (64.41.193.209)
> GET /XXX HTTP/1.0
User-Agent: curl/7.5.2 (win32) libcurl 7.5.2
Host: www3.placeware.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

* Follow to new URL: http://www16.placeware.com/XXX
  0 0 0 0 0 0 0 0 --:--:-- 0:00:00 --:--:--
 0
* Follows Location: to new URL: 'http://www16.placeware.com/XXX'
* Connected to cct.ops.placeware.com (64.41.193.232)
> GET /XXX HTTP/1.0
User-Agent: curl/7.5.2 (win32) libcurl 7.5.2
Host: www16.placeware.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

100 162 100 162 0 0 538 0 0:00:00 0:00:00 0:00:00
81

The first HTTP request is a POST, but after the first redirect
it changes to GET. Directing the request at the final URL
so as to avoid redirection works fine. The UNIX version works
fine.

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=129815&group_id=976
Received on 2001-01-23