How to Load Html Content from C/C++

Jan 29, 2016 10:47 AM
Jan 29, 2016 10:50 AM

I want to load html content from www.twitter.com/user in c/c++ without curl, what would the GET request look like? I connected on port 80(not https).

This is what I tried --> 'GET /user HTTP/1.1' but it didnt load the html, got a 400 bad request instead.

Error

HTTP/1.1 400 Bad Request

Date: Fri, 29 Jan 2016 10:46:16 GMT

Server: Apache

Content-Length: 226

Connection: close

Content-Type: text/html; charset=iso-8859-1





400 Bad Request



Bad Request



Your browser sent a request that this server could not understand.




Related Articles

637263493835297420.jpg

How to Use Zero-Width Characters to Hide Secret Messages in Text (& Even Reveal Leaks)

636455706472146367.jpg

How to Hide DDE-Based Attacks in MS Word

Comments

No Comments Exist

Be the first, drop a comment!