http:set_options/1, http:request/4
Ingela Anderton
ingela@REDACTED
Fri Jan 21 08:44:41 CET 2005
Michael McDaniel wrote:
[...]
> 1> hd:hd(3128,"http://www.erlang.org").
> {ok,{{"HTTP/1.0",400,"Bad Request"}, ...
> 2> hd:hd(3128,"http://www.autosys.us").
> {ok,{{"HTTP/1.1",200,"OK"}, ...
> 3>
>
> The problem appears to be that the http:request/4 command in both of
> the above invocations create the following get:
>
> GET / HTTP/1.1
>
> This is fine when not using proxy. When using proxy, the proxy server
> is expecting, for example, "GET http://www.erlang.org HTTP/1.1",
> so the get request fails.
Humm... you clearly found a bug. Unfortunately the proxy-server that
we use for testing does not fail as yours did, it somehow manages to
deliver the correct page anyway. I will correct it in time for the
next open source release that is planed for the 9 of februari.
--
/Ingela - OTP team
More information about the erlang-questions
mailing list