curl

curl problem, can't download full web page

With this code I'm trying to download this web page: http://www.kayak.com/s/... $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'http://www.kayak.com/s/search/air?ai=kayaksample&do=y&ft=ow&ns=n&cb=e&pa=1&l1=ZAG&t1=a&df=dmy&d1=4/10/2010&depart_flex=exact&r1=y&l2=LON&t2=a&d2=11/10/20...

installing php cURL on IIS

I cannot install PHP-CURL on IIS. I think I have tried everything. My phpinfo() output does not list cURL as available. I have C:\PHP in my path and working correctly. I have edited the registry to read from C:\PHP\php.ini. phpinfo() output shows the correct .ini path loaded. I have uncommented 'extension=php_curl.dll' I have ssleay32.d...

Curl abort transfer if (upload) speed is slower than

Is there a way to make curl abort transfer, if average speed of transfer (during POST) is slower than X.X KB/s? Some transfers get really, really slow and I would want them to restart. One of the easier ways would be take size of content to be uploaded and divide it by expected speed and assign this value into --max-time parameter. But t...

Php - Debugging Curl

I'd like to see what the post fields in the request are before I send it. (For debugging purposes). The php library (class) I'm using is already made (not by me), so I'm trying to understand it. As far as I can tell, it uses curl_setopt() to set different options like headers and such and then it uses curl_exec() to send the request. ...

PHP - How to hide URLS in MYSQL?

How to hide URL's in MYSQL but readable with curl and PHP? E.g. Obfucation or anything to hide those URL's. ...

PHP - Change fopen to curl

Hi! I use this function with 'fpoen', but I need to use 'curl' instead. function rest_auth_xml($url,$method,$token,$chave,$xml) { $auth = sprintf('Authorization: Basic %s',base64_encode("$token:$chave") ); $opts = array( 'http'=>array( 'method'=>$method, 'header'=>"Content-Type: text/xml\r\n" . $auth."\r\n", 'conten...

Bypass authenticated XML page to be parsed with PHP?

Hello, How can I parse this xml page http://evercore:[email protected]/www.sportsbook.com/trends/203.xml using PHP simplexml? I get an error saying it can't be loaded. Thanks, S ...

Posting multidimensional array with PHP and CURL

Hi everyone, I'm having trouble posting form data via CURL to a receiving PHP script located on a different host. I get an Array to string conversion error This is print_r of the array I'm posting: Array ( [name] => Array ( [0] => Jason [1] => Mary [2] => Lucy ) [id] => 12 [status] => local ...

Lag before disconnect after connecting to web service

Hi, when connecting to a web service such as Amazon or Yahoo, I find there is a one or two second delay after the data has been sent and before the service disconnects. I used to program with Perl and solved this by using a regular expression to match the end of the data, then break out of the loop. For example: while ($line = <SOCKET>...

PHP- Best Obfuscation Tool/Script?

Possible Duplicate: Code obfuscator for php? Hey, I am needing a PHP obfuscation tool or script that prevents people from decoding or reading it. What is the latest and best one so far? I heard of IonCube but theres decoders for it. It has to work with Curl/PHP coding. It has to be hard to crack or uncrackable. ...

Encode portion of path using PHP

I need to encode only part of the $delete path. Only the @ in the email address and # in the property. I know how to use urlencode for the whole thing but not on just that. The way it works, is it loops through to get the properties and most of them include # in the name. Anyone who can help modify so that this works would be greatly app...

need to read data from a log... tail, grep and inotifywait

I have data on one server that comes into a continuously growing log file. I need to tail that log and grep some information and then send that to another server for php to insert into a database. The computer that has the log can't be allowed access to the database. I tried this so far but my syntax on the bash command is wrong and I ca...

Reusing the same curl handle. Big performance increase?

Hi, In a php script I am doing a lot of different cUrl GET requests (a hundred) to different URL. Is reusing the same curl handle from curl_init will improve the performance or is it negligible compare to the response time of the cURL requests? I am asking that because in the current architecture it would be not easy to keep the same ...

Looking for a good book covering CURL library under c++

Hello, are there any good books/tutorials decscribing how to use CURL library under C++ to implement FTP / SFTP clients ? Thx for help. ...

Is Curl NOBODY actually fetch the body?

Hi, I'm not sure if this function in CURL just strips the response body out but still load it fully. Is that true? i don't want to waste bandwidth, i just want the headers. Thanks ...

Getting remote data - PHP or javascript?

Hi What method would you choose for retrieving tweets from Twitter, for example? Using json with jQuery (like http://juitter.com/), where client does the request. using PHP, for eg. CURL, where server does the request What are the advantages/disadvantages of both? ...

CURL can't connect? Just hangs and doesn't respond. PHP has it enabled.

Hi there, I have a simple PHP function on a friend server which I've checked and has PHP CURL enabled. The function is: function sw_fetch_code($apikey='',$email=''){ $url = "http://www.domain.com/xxx/api.php?getcode=1&amp;apikey=".$apikey."&amp;email=".$email.""; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); c...

PHP - How to get IP from "http://" or "www"?

Hey, How do I get something in PHP/Curl to grab the IP of the URL for me? It's going to be a simple interface that fetches URL IP's back for me. E.g. Enter "http://mysite.com" then I hit submit then I should get the IP of the mysite.com back. Please show me how its done thanks. ...

Multi_Curl using authentication

I am trying to login to a site and then call numerous URLs to get the source and scrape for images. It works fine using regular curl but when I try to use multi_curl I am getting back the exact same response. So that I only have to login once I am resuing the curl resource (this works fine with regular curl) and I think this may be the r...

cURL POST to REST Service

Hi, I am trying to post to a REST service using PHP cURL but I'm after running into a bit of difficulty (this being that I've never used cURL before!!). I've put together this code: <?php error_reporting(E_ALL); if ($result == "00") { $url = 'http://127.0.0.1/xxxxxx/AccountCreator.ashx'; /*I've tried it a combination of ways just...