Solved

Linux and C++

Posted on 2003-12-01
3
243 Views
Last Modified: 2010-04-02
Is there anyone who knows how(with wich function can I)send information to a given URL from a C program under Linux
0
Comment
Question by:Centauri
3 Comments
 
LVL 17

Accepted Solution

by:
rstaveley earned 70 total points
Comment Utility
Laziest way is to use the system command to run wget with a URL.
0
 
LVL 1

Assisted Solution

by:joesp
joesp earned 30 total points
Comment Utility
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
 
LVL 8

Assisted Solution

by:ssnkumar
ssnkumar earned 25 total points
Comment Utility
If you know socket programming, then this can be done in a few lines of code!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now