curl

Curl cookie handling

Hello! Is that possible that with cURL not every user use the same cookie? Because it's cool that I store the cookie that I get, but this cookie will be used by everybody, and it should be, because it's a login cookie. Charlie ...

cURL + JS_Extractor + php + MYSQL mess = Please help

A little background: There is a game I play on the net called doomlord... I'm in a Clan. I'm trying to present stats on the players that are relevant for us. For this I have to retrieve the names of the players from a web page that I can only access after a login. The page is: www.doomlord.net/index.php?m=szovetseg&sub=reszletes_statiszt...

Post form data to external url + curl

Hello all, I have this form that I am trying to use to post data to an external url. I do have some very basic knowlegde of using php curl. So far if I use this code that I have written: <?php if ($_POST['request_callback']) { $customer_name = cleaninput($_REQUEST['customer_name'],"text"); $debtor_id = cleaninput(...

Convert curl to flex

can anyboy tell me the equivalent of this in flex curl --insecure --request POST --basic -u [email protected]:password --header "Content-Type:application/xml" --data-binary "@c:\curl\examples\New_Activity.xml" https://beta.12sprints.com/v1/activities basicaly this ia a api in which i need to send the user credentials and a xml file...

how to capture CURL / XML data with Apache?

Hi, I'm developing a gateway script that needs to send info to another provider's server, and I need to debug the code. Is there a way, on my own Linux + Apache + PHP server to capture the CURL / XML data from this script? I know with PHP, that I could see for example the $_POST, $_GET or $_REQUEST data in a script, but with CURL I...

Multiple Thread Progress Bar Control with gtk

in my C program , download some files from the internet, im using a GTK progress bar to show the download progress. i wanna if i download one file ,my app show one progress bar if i download three files ,my app can show three progress bar. the rest can be done in the same manner. i create UI with glade3. GtkTreeView have 3 colum...

Installing PHP-CURL using apt-get

I installed curl using synaptic package manager on my Ubuntu machine. However it didn't installed with ssl enabled. When i do curl-config --protocols, it does not show HTTPS. I want to install curl with ssl enabled. If i do it manually by downloading curl and then compiling it with "--with-ssl" flag and then recompiling my PHP with "-w...

cURL sending XML incorrectly when using tag attributes

Scenario: Sending XML, generated using php, via cURL to an external server for parsing. Problem: The XML contains tag attributes which cause problems when being sent using cURL Code: $generated_xml = -- NOTE: NOT THE SYNTAX USED IN THE CODE, SPLIT FOR EASE OF READING -- "<xconnect> <report> <id>contact_get</id> <in...

Curl grab HTML content

I have a webpage which requires a login. I am using curl to build the HTTP authentication request. It works, but I am not able to grab all the content from my links. I miss all the images. How can I grab the images as well? <?php // create cURL resource $URL = "http://10.123.22.38/nagios/nagvis/nagvis/index.php?map=Nagvis_CC"; //Ini...

Drupal External Authentication

I have a cURL PHP script which is able to validate a username/password against the external source. What is the best way to integrate this as a login requirement for (select) users in Drupal? ...

Curl syntax simulation in Java

I have a curl syntax in .sh file. I need to run the curl sytnax or curl command in Java replicating the same syntax, but I am facing problem in replicating the same. $AUTH_OPTION="--basic -u testuser:testpwd" $HTTP_METHOD=POST $FILE_OPTION="-d @$INPUT_FILE" $CONTENT_TYPE="application/xml" $ACCEPT_TYPE="application/xml" echo curl -o res...

Gmail/Facebook without username/password - PHP Login Header Problem

Hi all. I want to create my own personal login gateway into Gmail/Facebook/any other site. In this gateway I enter my master username and password, then I can choose where to login (gmail/facebook/etc) without entering those usernames because they are stored on the server. I tried to implement this by using cURL to send POST request wi...

use curl to download indirect image file

I am try to download image files from url from the following code, but it doesn't return the right content from the server. The image can be rendered in browser by loading the url or downloaded using curl in shell mode, but not in php execution. In php execution, the header's content type returned from the server is 'text/html' instead o...

How to get a file size of remote file from googlecode with cURL?

I am trying to get a file size of remote file "compiler-latest.zip" (googlecode.com) using cURL without actually downloading it, here is my PHP code: $url = 'http://closure-compiler.googlecode.com/files/compiler-latest.zip'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CUR...

Using PHP Curl, how can I look at exactly what is being sent?

For instance, on the following CURL snippet: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //set target URL curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// allow redirects curl_setopt($ch, CURLOPT_POST, $usePost); // set POST method curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); //set headers curl_seto...

No XML response when using cURL

Is there a reason why a PHP cURL enblaed server will refuse to display xml responses? I have been working on a script to post numbers to a dialling service. I felt using cURL would be the best thing to do. On 3 different servers, each running different versions of PHP, I am able to get responses with no problems. But on the particula...

Form POST into Curl

I have a form created with 2 fields and a submit button. But i want to do the same thing using Curl. i tried it by using following code: $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,true); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields); $result = curl_exec($ch); curl_close($ch); $fields included t...

Uploading to S3 using Curl

Hi All, I'm currently using cURL to upload a file from my server to S3 using AJAX to call the script. So I have the following: $fullfilepath = '/server/sitepath/files/' . $_POST['file']; $upload_url = 'https://'.$_POST['buckets'].'.s3.amazonaws.com/'; $params = array( 'key'=>$_POST['key'], 'AWSAccessKeyId'=...

PHP CURL: Manually setting the content-length header

Say I upload a file with PHP, CURL: $postData = array(); $postData['file_name'] = "test.txt"; $postData['submit'] = "UPLOAD"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POST, 1 ); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData ); Now assume I have to...

Post Uploaded file to another PHP page?

Hello, Here is my problem. I have a ticket-tracking system that is not very 'user friendly' but I have a desire for my users to submit 'tickets' to the system without having them to see it. I got as far as just using a custom HTTP Form and posting to the ticket tracking system. One problem is the 'success/completion' page has a tende...