Есть код запроса:
httpc:request(post,
{Url, [],
"application/x-www-form-urlencoded",
"param1=1"
}, [], [])
ответ выглядит так:
{ok,{{"HTTP/1.1",301,"Moved Permanently"},
[{"connection","keep-alive"},
{"date","Mon, 02 Nov 2015 14:34:38 GMT"},
{"location","http://site.ru/new"},
{"server","nginx"},
{"content-length","249"},
{"content-type","text/html; charset=iso-8859-1"},
{"keep-alive","timeout=60"}],
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>301 Moved Permanently</title>\n</head><body>\n<h1>Moved Permanently</h1>\n<p>The document has moved <a href=\"http://site.ru/new\">here</a>.</p>\n</body></html>\n"}}
Согласно документации
autoredirect
The client automatically retrieves the information from the new URI and returns that as the result, instead of a 30X-result code.
For some 30X-result codes, automatic redirect is not allowed. In these cases the 30X-result is always returned.
Default is true.
должен быть автоматический редирект, но этого почему-то не происходит. Пробовал вручную прописать параметр {autoredirect, true}, ничего не поменялось. Что я сделал не так?