Hi, i tried to retrieve the content of this link:

http://de.tommy.com//Sale/600000,de_DE,sc.html


& got circular redirect, logging tells me that httpclient fires : GET
/Sale/600000,de_DE,sc.html
server response with redirect back to
http://de.tommy.com//Sale/600000,de_DE,sc.html

wget behaves like browser & gives back the content.


with telnet:


telnet de.tommy.com 80
Trying 89.202.105.72...
Connected to de.tommy.com.
Escape character is '^]'.
GET /Sale/600000,de_DE,sc.html HTTP/1.1
Host:de.tommy.com

HTTP/1.1 301 Moved Permanently
Date: Wed, 29 Jun 2011 10:11:15 GMT
Server: Apache
Content-Length: 0
Set-Cookie: dwsid=
CvVvWMuShdGfstjxicXY9lJb8Fk8gkMT8xV8zGEU_X1Y81Rt4F-469BS_cTJZ4hHcE7f5NVeacb1VKcXHFEKGg==;
path=/; HttpOnly
Cache-Control: no-cache,no-store,must-revalidate
Pragma: no-cache
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Location: http://de.tommy.com//Sale/600000,de_DE,sc.html
Vary: Accept-Encoding
Accept-Ranges: bytes
Content-Type: text/plain

Connection closed by foreign host.
-----


de.tommy.com 80
Trying 89.202.105.72...
Connected to de.tommy.com.
Escape character is '^]'.
GET //Sale/600000,de_DE,sc.html HTTP/1.1
Host: de.tommy.com

HTTP/1.1 200 OK
Date: Wed, 29 Jun 2011 10:07:11 GMT
Server: Apache
Set-Cookie: ....
....content


...

seems like httpclient strip out one of the 2 slashes.
is it a bug or the server is misconfigured ( i guess they use rewrite or
something but its not rare)

how can i fix this ?
thanx

Reply via email to