[erlang-questions] http error on request using httpc:request

Radoslaw Gruchalski radek@REDACTED
Fri Aug 7 11:17:51 CEST 2015


Any reason why the address is different in those examples?

Sent from Outlook




On Fri, Aug 7, 2015 at 2:11 AM -0700, "Dmitry Bushmelev" <dmitrii.bushmelev@REDACTED> wrote:










Hi.
If I am making request using curl or browser, response is successful:

$ curl -v http://www.fotbolldirekt.se/epfootball/feed/
* Trying 188.95.225.175...
* Connected to www.fotbolldirekt.se (188.95.225.175) port 80 (#0)
> GET /epfootball/feed/ HTTP/1.1
> User-Agent: curl/7.37.1
> Host: www.fotbolldirekt.se
> Accept: */*
>
< HTTP/1.1 200 OK
…

but if I am using httpc I am getting 500:

> httpc:request(get, {"http://blogg.vk.se/fotbollsbloggen/feed/", []}, [], []).
{ok,{{"HTTP/1.0",500,"Server Error"},
     [{"cache-control","no-cache"},
      {"connection","close"},
      {"content-type","text/html"}],
     "500 Server Error
An internal server error occured.

”}}

Erlang 17.4, problem reproduces on ubuntu 14.04 and OSX 10.10.

Do someone knows how to fix that?
Thanks.
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150807/fdb19fee/attachment.htm>


More information about the erlang-questions mailing list