![]() The header that was generated by the WebClient looks like this POST HTTP/1.1 I have also tried changing my post to 1.1 with no successĮdit2: Based on suggestion form fvu and others, I used WebClient to Upload my request. Some explanation on the difference would also helpĮdit: the other thing that confuses me is that the response has a HTTP 1.1 and not a 5.1 that I had sent. The response is always received on HTTP protocol. On wireshark though I see a difference with the number of line spaces as with a single line space the protocol is specified as TCP but with two it changes to HTTP. ![]() Not sure if that would make a difference. Can someone help me ?ġ) HTTP 5.1 was requested by the server and I am not sure if that is correctĢ) I have played around with the number of line spaces after the content length. I am pretty sure that the problem would not be there since I get back some response from the server and confident about the connection. I was not sure If I could put in the IP of the server here so kept myself to using. This is what my POST looks like POST / HTTP/5.1Īnd the response from the server looks something like this HTTP/1.1 400 Bad Request My only guess being that there might be a problem with my data that I am sending. I am not sure if the problem is with the client or the server. The only problem being that the response is always a HTTP 400: Bad Request followed by my HTTP POST message. I used simple socket programming to do that and I have been successful in sending across my request to them and also get back response from them. I have to perform a simple HTTP POST to an IP:port combination.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |