Okay... So now I've fixed my problem, thanks for the guidance though.
So to do this short, if you want to understand how the network contacts work, try to understand how Sockets work.
This place explains it pretty well:
http://www.linuxhowtos.org/C_C++/socket.htm
And then go and get cURL, if you use Cygwin, you can just include the cURL package when you install it.
And in order to...
User Profile
Collapse
-
YAY! I must express my happiness! :D
You have shown me the light! <3
Ohh well, to say it with real words. That was the exact problem and the exact code I didn't use :D
So... gcc cURLtest.c -lcurl fixed everything :DLeave a comment:
-
Well, as far as I know, these functions is contained within <curl/easy.h> so shouldn't that automaticly include it?
But just to make sure I didn't get you wrong, this is what I type into my Cygwin:
gcc cURLtest.cLeave a comment:
-
Why doesn't my cygwin work with the cURL example?
Hi guys
Compiler: Cygwin
OS : Windows 7 (64 bit)
C-Skills: Basic Understanding
So... I'm trying to make my cygwin compiler work with the cURL library, but it isn't really working all that well...
I've tried to completely re-install cygwin, by first removing the folder I stored cygwin in and then install cygwin with the 4 different cURL library's possible.
I can call functions... -
Never mind my last message, learned that it works anyway.
Just didn't know that you could run it even if you get a warning :P
But learned so at the university today ^^
So... Next is the HTTP! Hello world, here I come! :D
---------------
But where do I get a HTTP guide for C? To me, it doesn't look like HTTP functions is a standard thing in C.
But, I've read about cURL,...Leave a comment:
-
Hey again Johny, I've been studying the SOCKETS and I'd say I understood it enough to start making my first attempt on making my own program using SOCKETS, but I'm trying to compile this code that I found at http://www.linuxhowtos.org/C_C++/socket.htm but it won't compile. And I'm thinking I might have a problem with my Cygwin setup?
I get the Error code:
onlinelink.c: In function 'main':
onlinelink.c:47 : warning:...Leave a comment:
-
Not really no, I'm new to programing, and I've only mastered the general functions in C
But now I've found a page:
http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx
That seams to have all the functions I'll need, but I'm just a tad confused as of how the code should look when I establish the connection, could you give me an example?...Leave a comment:
-
How to get a HTTP Status code in a C program?
Hey guys, I'm trying to make a program that checks a specific internet address and gives me back the HTTP Status Code, I have to do it in C because it's a school project.
I'm using the Cygwin compiler on a Windows 7 (64-bit version)
I've searched Google for some good examples, but all I come across is C# and C++ codes.
Code:HttpWebRequest HttpWReq = (HttpWebRequest)WebRequest.Create("http://www.google.com/services/");
No activity results to display
Show More
Leave a comment: