Thread: http application library known ?

  1. #1
    Registered User
    Join Date
    Apr 2004

    http application library known ?

    I am about to change some code in order to make it controllable by a web interface. I want to be able to get commands and values out of the http-stream/messages and send back results (ie. complete pages or just a few numbers to be embedded in the page etc.).
    I got simple requests/replies so far and it does what i want but its no way clean nor is it standard conformant
    Now my problem is that it would be nice if there would be a way to avoid re-implementing ALL this http stuff. I want to be able to deal with my data only and let the library do the standard things like fetching images and fixed html pages from files.

    So i wondered if there is a library that can do something like this for linux ?

    Or any good idea ? Chris
    Last edited by chris78; 04-24-2004 at 09:09 PM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Here's one - I'm sure there are others...
    man libcurl
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Thanks a lot.
    Their website ( alone contains links ( to many similar projects
    I guess i can find something there ...

  4. #4
    Registered User
    Join Date
    Apr 2004
    I had a closer look at libcurl today and it seems to me it is unable to serve content. It rather goes the other way round. It can construct http-commands and fetch content from a webserver for you.

    Now i found pthrlib and will give this one a try. It was used to build webservers and basically that is what i want to do but i want to save the effort implementing the basics of it


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cleanup of the application...
    By Petike in forum Windows Programming
    Replies: 1
    Last Post: 08-16-2008, 05:23 PM
  2. Error stop Http Listener
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-04-2008, 02:14 AM
  3. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  4. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 04:33 AM
  5. Problem with Apache XML C++ Parser library
    By gandalf_bar in forum C++ Programming
    Replies: 2
    Last Post: 07-21-2004, 09:42 AM