[plt-scheme] Problems fetching page

From: Anton van Straaten (anton at appsolutions.com)
Date: Sat Apr 24 14:07:22 EDT 2004

Solved!

I wrote:
> I notice that if you send a CR as the first character when connected with
> telnet, you get the server error.  Other servers will withstand a single
> spurious CR.

And that was indeed what triggers the problem.  In url-unit.ss, in the
function http://getpost-impure-port (gotta love those Scheme function
names), line 149 in my v206 copy reads:

  (display "\r\n" client->server))

Delete the \r, and it works.  I don't know what the HTTP protocol says about
this.

Anton



Posted on the users mailing list.