<div dir="ltr">Hi.<br><br>When I use curl post the data to mochiweb like this:<br><br>curl <a href="http://192.168.1.1">http://192.168.1.1</a> -d "hello"<br><br>I could call Req:parse_post() to get the data like [{"hello",[]}], and call Req:recv_body() to get the data like <<"hello">>.<br>
<br>When I use httpc post the data to mochiweb like this:<br><br>httpc:request(post, {"<a href="http://192.168.1.">http://192.168.1.</a>.1", [], [], "hello"}, [], [])<br><br>I could call Req:recv_body() to get the data like <<"hello">>, but when I call Req:parse_post(), it return [].<br>
<br>How should I post data with httpc like curl?<br><br>Regards,<br>Solomon<br></div>