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.
Look into using libcurl.
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?
libcurl comes shipped on my computer, so I can't help you with your questions.
Does sound like you've got the wrong version, yes.
Originally Posted by Hakins90
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.
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.