curl

Curl, twitter oauth problem

Does anyone see a problem with the following Curl call / how the Oauth request is built? (i am trying to get a correctly setup request so i can finish my app) So i am calling the following CURL call: C:\>curl -v -k --data-urlencode "status=Testing2" -H "Authorization: OAuth realm='', oauth_nonce=1276107867blah, oauth_timestamp=1276107...

Login to remote site with PHP cURL

I'm new to using cURL and its hard to find good resources for it. What I'm trying to do is login to a remote site, by having curl do the login form and then send back that it was successful. The code I have doesn't seem to work and only tries to show the main page of the site. $username="[email protected]"; $password="mypassword";...

libcurl (c api) READFUNCTION for http PUT blocking forever

I am using libcurl for a RESTful library. I am having two problems with a PUT message, I am just trying to send a small content like "hello" via put. My READFUNCTION for PUT's blocks for a very large amount of time (minutes) when I follow the manual at curl.haxx.se and return a 0 indicating I have finished the content. (on os X) Wh...

Saving images only available when logged in

Hi, I've been having some trouble getting images to download when logged into a website that requires you to be logged in. The images can only be viewed when you are logged in to the site, but you cannot seem to view them directly in the browser if you copy its location into a tab/new window (it redirects to an error page - so I guess t...

Determining URL of script that is calling from a remote CURL request

Hello, I have a homebase script, that I have many other scripts ping for information using the CURL method. I need to determine the domain name of the callers. Can I do this with tricks just on my homebase script? . using php . Hudson ...

Android page Curl animation

Hi... Two questions: Is there a simple way to do the Curl page flipping animation? A Curl animation is animation of pages flipping, including the page above rolling and the shadows over the lower page. What is the recommended way to do a "gallery" that displays two pages at a time (just like a book)? Is it: Letting the adapter displa...

php, curl , php curl , multipart/form-data , upload picture redirect

I'm trying to upload some pictures using php cURL on a classified ad website .I think that I set all the parameters properly but I see that there is a kind of redirect after I post the picture . The issue is that the url where I'm getting redirected gives 404 error instead to return the html that it does when I make the post with a norma...

PHP cURL error: "Empty reply from server"

All, I have a class function to interface with the RESTful API for Last.FM - its purpose is to grab the most recent tracks for my user. Here it is: private static $base_url = 'http://ws.audioscrobbler.com/2.0/'; public static function getTopTracks($options = array()) { $options = array_merge(array( 'user' => 'bachya', 'peri...

How to enable curl in xampp ?

How to enable curl in xampp ? My PHP twitter application needs curl function. But it is not enabled in XAMPP. how to enable it. I found no options for doing that. ...

PHP Header redirection problem within page called by cURL

I have a site that uses cURL to access some pages, stores the returned results in variables, and then uses these variables within its own page. The script works well except where the target cURL page has a header('Location: ...') command inside it. It seems to just ignore this header command. The cURL command is as follows... //Load re...

How to get CURLs reponse in Array

Hello friends. I have one problem regarding CURL. I am trying send CURL request to http://whatismyipaddress.com so.. is there any way to get curl response in array ? because right now it display the HTML Page but i want the response in array. here is my code... $ipAdd = '121.101.152.170'; $ch = curl_init("http://whatismyipaddress.com...

Getting Gowalla Check-in history using API

I have been playing around with the Gowalla API, and was wondering if anyone has found a way to get a list of all recent checkins (just your own, not including friends). The documentation is quite awful. ...

hidden post parameter , php curl

I'm trying to replicate the browser post parameters on http://www.ebayclassifieds.com/m/PostAd?scrid=3465450-2253858851033189948 but for some reasons I can't find where the values for 2 of them are comming from . The parameters are btn-previwe-ad.x and btn-previwe-ad.y but I can't find such as parameters in the html source itself o...

How can I stop cURL from outputting the contents of the page it loads into the browser?

I currently use curl_multi_* to connect to a few sites. Its only sending a few $_GET variables to start a script, but it outputs the html from the sites to the browser. I want to stop this. I already use a short timeout, but sometimes the scripts start fast, and I don't want to set the timeout any lower, in case it causes it not to conne...

How to set the authorization header using curl

Hello, I am using the curl found in /usr/bin/curl (Not the PHP Curl ) how do I pass authorization header using curl ? It will be great if someone can reply. Regards, Mithun ...

Recommend a cURL wrapper class in Php

I need recommendations for an established and maintained cURL wrapper library/class to use with cURL in Php. It wouldn't hurt if there was some documentation with it, but its not a must have. Thanks ...

CURL C API: callback was not called

Hi all, The code below is a test for the CURL C API . The problem is that the callback function write_callback is never called. Why ? /** compilation: g++ source.cpp -lcurl */ #include <assert.h> #include <iostream> #include <cstdlib> #include <cstring> #include <cassert> #include <curl/curl.h> using namespace std; static size_t writ...

What do I have to change in my PHP/CURL code to retrieve data from a https:// URL?

I have a PHP file using CURL that accepts a Google Doc URL as a parameter, then returns the plain text of the Google Doc. It worked well until recently when apparently a redirect was added so that the http:// address redirects to the equivalent https:// address, as in this example: http://docs.google.com/View?id=dc7gj86r_20dn2csqg3 S...

What is cURL in PHP?

Hello, I am a developer in PHP. Nowadays i come across the word cURL in many PHP source codes. Saw wikipedia, but i didn't get the information i want update : thanks Gordon for the reference ...

PHP- Curl Download Bandwidth Limiting

Hey guys, I have been trying to limit the bandwidth with PHP. Can you please help here? I can't get the download rate to be limited with PHP. Thanks a million! function total_filesize($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLINFO_SPEED_DOWNLOAD,12); //ITS NOT W...