decode_packet for the body

Joel Reymont <>
Thu May 28 16:38:17 CEST 2009

Suppose I repeatedly ran erlang:decode_packet until it returned  
http_eoh (end of headers). I get something like this after  
accumulating the results.

                   <<"curl/7.19.4 (i386-apple-darwin9.7.0) libcurl/ 
7.19.4 zlib/1.2.3">>},
     %% body that I still need to decode!

Notice that the body of the POST is x-www-form-urlencoded.

Is there a built-in function somewhere to split the body into fields  
and values?

	Thanks, Joel

Mac hacker with a performance bent

More information about the erlang-questions mailing list