User Profile

Collapse

Profile Sidebar

Collapse
Lars Pedersen
Lars Pedersen
Last Activity: Jul 20 '11, 11:14 AM
Joined: Nov 18 '10
Location: Denmark
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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...
    See more | Go to post

    Leave a comment:


  • 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 :D
    See more | Go to post

    Leave 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.c
    See more | Go to post

    Leave a comment:


  • Lars Pedersen
    started a topic Why doesn't my cygwin work with the cURL example?
    in C

    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...
    See more | Go to post

  • 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,...
    See more | Go to post
    Last edited by Lars Pedersen; Nov 25 '10, 04:39 PM. Reason: Needed more help...

    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:...
    See more | Go to post

    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?...
    See more | Go to post
    Last edited by Lars Pedersen; Nov 18 '10, 01:04 PM. Reason: More information gathered.

    Leave a comment:


  • Lars Pedersen
    started a topic How to get a HTTP Status code in a C program?
    in C

    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/");
    ...
    See more | Go to post
No activity results to display
Show More
Working...