What I want to do is read a webpage and then store it in a sting I know how to do this using libcurl but is there any other way to do this without using libcurl?(Using Cygwin to compile)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can implement a simple HTTP request using raw sockets. But for other than learning exercises I would not recommend this and just go with libcurl.
For an example program which uses raw sockets look here: http://coding.debuntu.org/c-linux-socket-programming-tcp-simple-http-client (randomly found on google, quality not assured).