?
Solved

Linux and C++

Posted on 2003-12-01
3
Medium Priority
?
251 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 210 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 90 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 75 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.
Suggested Courses

771 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