[BUG][FIX] HTTPSocket>>httpGet: and redirecting without host names

Ben Schroeder bschroeder at procro.com
Tue Jan 11 16:41:24 UTC 2005


Hi everyone,

HTTPSocket>>httpGet: has a bug when trying to handle HTTP redirects that
did not include a host name, like "/some/file". The attached changeset
fixes the bug.

>From the preamble:

"Change Set:		FixHTTPRedirectsWithoutHostName-bvs
Date:			11 January 2005
Author:			Benjamin Schroeder

HTTPSocket has a method to get a web page, #httpGet:. This method
handles redirects.

However, #httpGet: was failing on redirects that gave the new location
as a full path with no host name, such as '/some/file'. (Seaside - at
least while running on Komanche but possibly elsewhere - issues
redirects like this.)

This changeset fixes the behavior."

Regards,
Ben Schroeder

 <<FixHTTPRedirectsWithoutHostName-bvs.1.cs.gz>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixHTTPRedirectsWithoutHostName-bvs.1.cs.gz
Type: application/x-gzip
Size: 909 bytes
Desc: FixHTTPRedirectsWithoutHostName-bvs.1.cs.gz
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050111/894393cc/FixHTTPRedirectsWithoutHostName-bvs.1.cs.bin


More information about the Squeak-dev mailing list