How to get request body from the client with “keep-alive” connection?

30 views
Skip to first unread message

Nikita

unread,
Dec 13, 2017, 10:27:03 AM12/13/17
to The C++ Network Library
Hallo,

I am trying to get http post request body from some external client with no success. I've made a server, and it can observe the request body from the test client, which I also made using cpp-netlib. But it doesn't like my external client. 
even if I debug and look at the connection pointer i find nothing (first pic). 

In case of the test client I can see the some text is there if I compare "new_start" and "data_end" (second pic).


Here are the corresponding screens form wireshark, external client:


test client: 


I thing, that the problem can be the keep alive connection. Any idea? Is there some solution?
The external client is asynchron in this example, but it can be also synchron. Still it doesn't help. 


Nikita

unread,
Dec 18, 2017, 11:39:04 AM12/18/17
to The C++ Network Library
sorry, already solved, i'm an idiot, removed "if (left>0)" erleier, that was a problem. 
Reply all
Reply to author
Forward
0 new messages