How to get Source code WInsock

closed account (ozUkoG1T)
Hi C++ Forums,
I am working (Learning) on a program in which the user enters a Website URL then the C++ Program will take the source code . I do not want to make it open source i want it to be Good. Not to bad about open source coders here. I know how to make a open source one but now want to make a non open source program.

Please help
Use libcurl rather than using winsock directly, it is much easier to use:
http://www.haxx.se/libcurl/
closed account (ozUkoG1T)
yes but the problem is it does not work ( i mean the link is not online)
Last edited on
Try replacing 'www' with 'curl'...

http://curl.haxx.se/libcurl/

e.g. simple HTTP
http://curl.haxx.se/libcurl/c/simple.html
simple.c shows how to get a remote web page in only four libcurl function calls.

Also, if you want to go the Win32 way, it might be better to use WinINet rather than WinSock

WinINet
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383630%28v=vs.85%29.aspx

Common Functions
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383949%28v=vs.85%29.aspx

But if don't need Win32 for other reasons, I'd stick to libcurl as it's cross-platform.

Andy
Last edited on
I am working (Learning) on a program in which the user enters a Website URL then the C++ Program will take the source code .
Sounds like that open source program wget.
http://www.gnu.org/software/wget/

I do not want to make it open source i want it to be Good.
:)
Last edited on
Topic archived. No new replies allowed.