libcurl

libcurl authentication on iphone?

Is there any way i can use libcurl library in Iphone to authenticate? ...

using libcurl without dll

I am using Microsoft Visual C++ 2010, and I need to make an application that does not require the libcurl dll. I am defining CURL_STATICLIB in the preprocessor directives and linking to libcurl.lib, libcurl_static.lib, ws2_32.lib, and winmm.lib, but it still requires the dll to work. If I only link to libcurl_static.lib, it has undefined...

Corrupted Binary Files after Transfer libcurl

I am transferring a binary file (.exe) with FTP using libcurl, and saving it to a local file. The problem is that after the file is transferred, it is altered and is no longer a valid Win32 application, and doesn't run. Here's how I'm doing it: CURL *curl; curl = curl_easy_init(); FILE* f = fopen("C:\\blah.exe", "w"); if(curl) { ...

C libcurl - measure download speed and time remaining

Hi, I am using the following code to download files from the internet: size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) { size_t written; written = fwrite(ptr, size, nmemb, stream); return written; } int main(int argc, char** argv) { FILE *downloaded_file; if ( (downloaded_file = fopen (download_path ...

After in VS2010 include other library, app fail on start with error 0xC000007b

Hello, I have a problem, downloaded curl developemnt package but if i add in my visual studio .lib file form this program fail with 0xC000007b on startup. I trying download all complete source in this i can download simple vs6 project but without errors i convert it to visual studio 2010, i compile this solution normally, libcurl with...

Saving a file using libcurl in C

I'm expanding from perl to C and I'm trying to use curl's library to simply save a file from a remote url but I'm having a hard time finding a good example to work from. Also, I'm not sure if I should be using curl_easy_recv or curl_easy_perform ...

Post data on a forum programatically.

can you send data using libcurl on forum or any other ways like TCP/IP API? ...

Silencing libcurl/pycurl PUT and POST

I have a python script which does a bunch of PUTs and POSTs, and when they are successful curl will output the updated html to stdout. I was wondering if there was a way to keep it from doing this? I don't really care about this information, so sending it to a file isn't necessary, but that seems to be the only solution I can find. ...

Help for PHP newbie in results indexing using PHP

I am trying to create a multithreaded PHP script that POSTs the USN (University Seat Number) to the university results website and then indexes the result. Please give me the plot to do so. I started learning PHP a month ago. please do read the following: Valid USN regex is /^([12347]{1})([a-zA-Z]{2})([0-9]{2})([a-zA-Z]{2})([0-9]{3})$/...

Creating libcurl http post form

How do i create a curl_form e.g to do a post on stackoverflow? If i look in source of question form page, I see <label for="display-name">Name</label> <input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105"> </div> <div> <label for...

Translating curl to python urllib2

Can someone please show me how to convert this curl call into call using python urllib2 curl -X POST -H "Content-Type:application/json" -d "{\"data\":{}}" -H "Authorization: GoogleLogin auth=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789...XYZ" https://www.googleapis.com/prediction/v1/training?data=${mybucket}%...

Anyone know of a good CURL wrapper for PHP that can be extended upon?

Specifically I am looking for a good OOP PHP CURL class that can be extended to maybe have multi threads and proxy support. Thank You ...

How do I use libcurl to login to a secure website and get at the html behind the login.

Hey guys, I was wondering if you guys could help me work through accessing the html behind a login page using C and libcurl. Specific Example: The website I'm trying to access is https://onlineservices.ubs.com/olsauth/ex/pbl/ubso/dl Is it possible to do something like this? The problem is that we have a lot of clients each of which h...

Using Curl to get a Https webpage in Windows 7

I just need to fetch an https page, and I'm using curl currently by having the curl.exe application in my Path and calling it with a Perl file. However, then I get the error "* Protocol https not supported or disabled in libcurl". I've been looking around and I can't find a solid set of instructions to get it to work. I have installed cy...

How do I send long PUT data in libcurl without using file pointers?

I'm trying to interface with the Google Contact API, and in order to update a contact on the remote side, I need to use a PUT request instead of POST. Since the data I want to PUT is already in memory, I really don't want to deal with file pointers, which seems to be the default behavior of CURLOPT_READDATA. Thus, I understand I need to...

Problem using libcurl: it does not appear to get the entire page

I am having difficulty getting started with libcurl. The code below does not appear to retrieve the entire page from the specified URL. Where am I going wrong? #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <curl/curl.h> #include <curl/types.h> #include <curl/easy.h> using namespace std; char b...

How do I use libcurl in Visual C++ 2010?

Hey guys, I was wondering if you would be able to help me use libcurl within Visual Studio to resolve the errors in the image below: ...

How to Benchmarking : bandwidth improvement from using GZIP with cURL (PHP)

Hi guys, I am trying to benchmark the bandwidth saved from setting GZIP to active with cURL(PHP). I did this by curl_setopt($ch, CURLOPT_ENCODING , 'Accept-Encoding: gzip'); Below is the documentation for CURLOPT_ENCODING : The contents of the "Accept-Encoding: " header. This enables decoding of the response. Supported encodin...

C++ - how to send a HTTP post request using Curlpp or libcurl

I would like to send an http post request in c++. It seems like libcurl (Curlpp) is the way to go. Now, here is a typical request that am sending http://abc.com:3456/handler1/start?&lt;name-Value pairs> The name values pairs will have: field1: ABC field2: b, c, d, e, f field3: XYZ etc. Now, I would like to know how to achieve the ...

curl command not working on apache2 virtual host

hi , i created a virtual host where i would manage a separate project on the same machine. the problem is that when i attempt to make a curl request from the php code in the virtual host, i dont get any response. How can i set the Curl library to work on the virtual host Update: i ran the command on the command line : curl new_Serve...