cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1187334 ] redirection error

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 21 Apr 2005 05:28:23 -0700

Bugs item #1187334, was opened at 2005-04-21 14:14
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1187334&group_id=976

Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: virgile devaux (vdevaux)
Assigned to: Daniel Stenberg (bagder)
Summary: redirection error

Initial Comment:
I'm trying to developp a micro browser for a larger
project, using libcurl to handle the network related stuff.
i try to access the following url:
http://xxxxxxx/gestSmsgagn/index_audio.php4?CALLEDNUMBER=%220825105010%22&CMPT%5fAI=2&%5f%5fTIMESLOT%5f%5f=30&%5f%5fDTIDEVICE%5f%5f=dtiB1T11
using a GET method. This script redirect to a relative
path; here's the header of the response:

HTTP/1.1 302 Found
Date: Thu, 21 Apr 2005 11:53:12 GMT
Server: Apache/2.0.40 (Red Hat Linux)
mod_perl/1.99_05-dev Perl/v5.8.0 PHP/4.2.2
mod_ssl/2.0.40 OpenSSL/0.9.6b DAV/2
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.2
Set-Cookie: PHPSESSID=a0fe69060bc378ae0d4f62b6be9c2b30;
path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
Pragma: no-cache
Location: sequ_audio/entree.php4
Content-Length: 0
Content-Type: text/html; charset=ISO-8859-1

Instead of following the redirection to the url
http://xxxxxxx/gestSmsgagn/sequ_audio/entree.php4 curl
returns an error: "URL using bad/illegal format or
missing URL". The http code is 302 and the effective
uri becomes /sequ_audio/entree.php4 (yes with a slash
at the beginning!).
I know that a redirection must be an absolute url, and
certainly not a relative path, but is this behaviour
something known and not handle or just a bug?

uname -a : Linux XXXX 2.6.8-2-686-smp #1 SMP Mon Jan 24
02:32:52 EST 2005 i686 GNU/Linux (Its a debian)
curl 7.13.0 (i686-pc-linux-gnu) libcurl/7.13.0
OpenSSL/0.9.7e zlib/1.2.2 c-ares/1.2.0
Protocols: ftp http file https ftps
Features: AsynchDNS Debug Largefile NTLM SSL libz

thanks in advance for any response one might give.

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

>Comment By: Daniel Stenberg (bagder)
Date: 2005-04-21 14:28

Message:
Logged In: YES
user_id=1110

We have more than 25 tests cases using Location: without
problems. Can you figure out what makes this special?

Can you provide us with a public URL that responds with a
Location: that causes this problem?

You say libcurl returns error CURLE_URL_MALFORMAT and in the
next sentense you say "the effective uri becomes...". What
do you mean?

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1187334&group_id=976
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-tracker
Received on 2005-04-21

These mail archives are generated by hypermail.

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

File upload with ASP.NET