View Full Version : Sending data to a server
Hakins90
04-16-2008, 05:41 AM
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
Look into using libcurl.
Todd
Hakins90
04-16-2008, 07:09 AM
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
libcurl comes shipped on my computer, so I can't help you with your questions.
matsp
04-16-2008, 07:36 AM
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
Hakins90
04-16-2008, 07:52 AM
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.
matsp
04-16-2008, 07:54 AM
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
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.