Thread: Sending data to a server

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    8

    Sending data to a server

    I want to be able to send data to a server, using c, in the same way as when you send info in an ASP form using your browser.

    So like, when i type into my browser www.website.com/form.asp?a=12&b=6 im sending the data 12 and 6 as a and b repectively to the form.asp on the server.

    How can i send data like this in the simplest way using c?

    I have managed to implement it in Matlab M code, by using the built in browser, but i can't see a simple way of doing it in c... due to my noobish nature.

    Thanks

    Harry

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Look into using libcurl.

    Todd
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    8
    Wow this library looks perfect.

    My problem now is, when i try to run the compiled the simple.c from the libcurl site, it says

    "The ordinal 55 could not be located in the dynamic link library zlib1.dll"

    Do i have the wrong version of zlib?

    If so, where is the correct version?


    Thanks

  4. #4
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    libcurl comes shipped on my computer, so I can't help you with your questions.
    Mainframe assembler programmer by trade. C coder when I can.

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Hakins90 View Post
    Wow this library looks perfect.

    My problem now is, when i try to run the compiled the simple.c from the libcurl site, it says

    "The ordinal 55 could not be located in the dynamic link library zlib1.dll"

    Do i have the wrong version of zlib?

    If so, where is the correct version?


    Thanks
    Does sound like you've got the wrong version, yes.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    8
    right, i don't have a clue why i have the wrong version.

    The zlib site says that the release hasn't been updated since july 2005.

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Note that it doesn't have to be a NEWER version that is "right", but just as possible that it's an older version (or just DIFFERENT version) that is "right". Not being able to find "ordinal 55" is simply that there is no 55th exported function in zlib.dll - why that is, I can't say, but it clearly indicates that the libcurl was build with a DLL that does have a entry 55 in the DLL.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending data - line by line?
    By tuckker in forum C Programming
    Replies: 0
    Last Post: 02-21-2009, 09:31 PM
  2. Client/server problem; server either stops receiving data or client stops sending
    By robot-ic in forum Networking/Device Communication
    Replies: 10
    Last Post: 02-16-2009, 11:45 AM
  3. Replies: 4
    Last Post: 06-14-2005, 05:45 AM
  4. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 07:31 AM
  5. Problems with sending data to a smtp server
    By knutso in forum Windows Programming
    Replies: 2
    Last Post: 04-01-2003, 08:07 AM