[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get-pure-port aborts giving error 10054

At Sun, 14 Apr 2002 10:53:19 +0200, Jens_Axel_Søgaard wrote:
> The following expression aborts my program.
> > (get-pure-port (string->url "http://www.tedgoff.com/mb/images/today.gif";))
> tcp-read: error reading (Unknown error; errno=10054)

Looks like the URL library's HTTP client protocol has always been
broken. It's using #\newline for end-of-line in the HTTP request
header, instead of a #\return #\newline sequence. (Apparently, most
HTTP servers are forgiving, but not the one at www.tedgeoff.com.)

Fixed and exp-tagged in CVS.

To repair 200alpha12, go to plt/collects/net/url-unit.ss and replace
each of the two instances of
    (newline client->server)
    (display "\r\n" client->server)