Thank you very much!
Type: Posts; User: badCProgrammeur
Thank you very much!
Hello, I have written an HTTP client that outputs to a file the contents of the body of an HTTP response. It completely eliminates the header of the response.
I have run into one conundrum...
Hey Salem, I have made numerous modifications and I am not getting any errors to be honest (never actually did).
myMac:ProgrammingProjects Moussa$ !496
g++ -g http_client.cpp -o http_client...
Thanks for that, that has helped a lot. My brain is drained after all this. I think I am making one mistake. Let's say that you are making a GET Request to a URL that has 2 levels in its full path...
Hello @christop, thanks for chiming in. So I guess my string is missing the host header then.
@Salem, I have changed the code for send, and I'm not sure why still my code for the GET request is generating a different result from the browser. One thing I did notice though besides the...
The http GET request is definitely different when made from the browser. In comparison:
16502
I noticed that IPv4 addresses are different from my browser, the IPv4 address of the test server is...
Thanks for your input Salem. I did a wireshark trace with some of the modifications you suggested. I noticed in the three-way tcp handshake that there are ECN and CWR bits set. I assume that these...
Hello Salem I made the suggested changes:
//Logic for HTTP GET Request
string http_request = "GET /" + file_to_get + " HTTP/1.1\r\n\r\n";
cout << http_request << endl;
...
Thanks Salem for your input. I greatly appreciate it! I am new to socket programming, so please pardon my ignorance, I specified a buffer of 999mb in the recv buffer because I wanted to have the...
I created a simple http client socket program that fetches data via a GET Request. Sadly, it does not seem to be returning a http response (it seems to freeze). The request appears t be valid and...