#45533 [Com]: cURL output includes content from redirects when CURLOPT_FOLLOWLOCATION set
| From: | satishpalasa at hotmail dot com | Date: | Tue, 03 Feb 2009 05:09:02 +0000 |
| Subject: | #45533 [Com]: cURL output includes content from redirects when CURLOPT_FOLLOWLOCATION set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133417@lists.php.net to get a copy of this message | ||
ID: 45533
Comment by: satishpalasa at hotmail dot com
Reported By: signe at cothlamadh dot net
Status: No Feedback
Bug Type: cURL related
Operating System: FreeBSD 7.0
PHP Version: 5.2.6
Assigned To: fb-req-jani
New Comment:
I am facing the same problem the header content is not recorded. will
there be any problem with this.
Previous Comments:
------------------------------------------------------------------------
[2008-08-07 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-07-30 18:57:33] jani@php.net
When you can provide a script that reproduces this problem every time,
give us feedback.
------------------------------------------------------------------------
[2008-07-17 00:17:50] signe at cothlamadh dot net
I didn't try before reporting, and since they've made a modification,
my one known verification site is lost.
I saw this bug in a previous version of php (5.1.2, I believe) and at
that point in time, I couldn't replicate it with curl commandline. I
upgraded to 5.2.3 (along with a newer libcurl) on that particular server
and wasn't able to reproduce it after the upgrade so I didn't report it
at the time.
I need to try to create a redirect script that can cause the behavior -
until I do, no, I can't reproduce it in either PHP or curl.
------------------------------------------------------------------------
[2008-07-16 22:29:29] jani@php.net
Can you reproduce this using curl on command line? ie. without PHP?
------------------------------------------------------------------------
[2008-07-16 22:03:49] signe at cothlamadh dot net
Of course, after posting the reproduction, the server that was causing
the issue modified something and it's no longer reproducing against
them. This was the original output from a request to their server:
telnet www.crn.com 80
Trying 66.77.24.10...
Connected to crn.com.
Escape character is '^]'.
GET /rss/cisco/index.xml HTTP/1.1
Host: www.crn.com
HTTP/1.1 302 Found
Date: Wed, 16 Jul 2008 21:52:30 GMT
Server: Apache
Location: http://feeds.pheedo.com/rss/cisco
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Vary: Accept-Encoding, User-Agent
119
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A
HREF="http://feeds.pheedo.com/rss/cisco">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.29 Server at www.crn.com Port 80</ADDRESS>
</BODY></HTML>
0
Connection closed by foreign host.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/45533
--
Edit this bug report at http://bugs.php.net/?id=45533&edit=1