<div>I have function:</div>
<div> </div>
<div>some_function(Url, Cookie, Command, Command2) -><br />httpc:request(post, {Url, [{"Cookie", Cookie}], "text/xml", Command}, [], [{socket_opts, [{keepalive, true}]}]),<br />httpc:request(post, {Url, [{"Cookie", Cookie}], "text/xml", Command2}, [], [{socket_opts, [{keepalive, true}]}]).</div>
<div> </div>
<div>which sends two request to same Url with different command, one after another.</div>
<div> </div>
<div>Screenshot from wireshark: http://tinypic.com/view.php?pic=9s8m03&s=8</div>
<div> </div>
<div>As you can see, in last call of some_function, first request is ok, but second is send to nowhere, and i got no response because first result was without keep-alive header, so second request should open new connection, but it didn't</div>