[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Linux and C++

Is there anyone who knows how(with wich function can I)send information to a given URL from a C program under Linux
0
Centauri
Asked:
Centauri
3 Solutions
 
rstaveleyCommented:
Laziest way is to use the system command to run wget with a URL.
0
 
joespCommented:
There is function for this in the curl library.  I have this installed and typed libcurl to be directed to type 'man curl_easy_perform, which gives a little on the function, such as (cutting and pasting)

 #include <curl/curl.h>

       CURLcode curl_easy_perform(CURL *handle);

I would love to give more details but sourceforge has had a "in maintenance, come back shortly" page on itself all day.
0
 
ssnkumarCommented:
If you know socket programming, then this can be done in a few lines of code!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now