Solved

Linux and C++

Posted on 2003-12-01
3
249 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Create string splitting user defined function in C++ 23 356
maze travler 6 73
Issues with C++ Class 19 119
Error creating a new C++ project in ,net 20 59
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

734 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