[erlang-questions] getting the path of an http request as binary
Sverker Eriksson
sverker@REDACTED
Thu Feb 11 15:24:07 CET 2010
Pablo Platt wrote:
> Hi
>
> mochiweb uses:
> gen_tcp:recv(Socket, 0, ?REQUEST_RECV_TIMEOUT)
> which result with:
> {ok, {http_request, Method, Path, Version}}
> where the Path is a list.
>
> Is it possible to get the Path as binary without having to convert it?
>
>
Socket option {packet, http_bin}
> Are there docs about http_binary packet parser in R13B03?
>
>
inet:setopts/2
erlang:decode_packet/3
/Sverker, Erlang/OTP Ericsson
More information about the erlang-questions
mailing list