help please

This is a discussion on help please within the Linux Programming forums, part of the Platform Specific Boards category; i am using Linux to program in for the first time. i have a basic knowledge of c and am ...

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    20

    help please

    i am using Linux to program in for the first time. i have a basic knowledge of c and am currently learning c#. can anyone help me retrieve text from a URL in Linux with in C. if any one can help me learn how to read one string to start with. found it very easy in c# and java. thought i would have a look how its done in C to understand it better. im new to sockets and im finding it hard to find souses to learn from.

    Thanks very much

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    libcurl or BSD sockets with some understanding of the HTTP protocol.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    The reason it was easy in C# and Java is that their associated libraries have functions that make it easy. C does not have the same kind of extensive library support built in. The options are starting from scratch using -- as zacs7 above mentioned -- sockets (two good resources: Link 1 Link 2) and HTTP (Link 1 Link 2), or finding an HTTP library usable from a C program, such as libcurl.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21