Solved

Linux and C++

Posted on 2003-12-01
3
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
rstaveley earned 70 total points
ID: 9851851
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
ID: 9856011
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
ID: 9903337
If you know socket programming, then this can be done in a few lines of code!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

687 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