So I have this cURL script for remote login. It works fine for some pages but not the pages I need.
For the page that isn't accessible through the script, the remote server requires the url be like this:
https://sub.example.com/a/b/thisPage.aspx?aVar=%2Fa%2Fb%2Fc%2Fd%2FFile+Name.nev
It seems that cURL or just php automatically conv...
So I have this cURL script for remote login for a website.
It works fine for some of the pages but not the page I need.
The remote server requires the url be like this:
https://sub.example.com/a/b/thisPage.aspx?aVar=/a/b/c/d/File+Name.nev
When I manually enter enter it in my browser after being logged in, it pulls up the page just ...
Hello everyone,
I was trying to use the program cURL inside of BASH to download a webpage's source code. I am having difficulty when trying to download page's code when the page is using more complex encoding than simple HTML. For example I am trying to view the following page's source code with the following command:
curl "http://s...
Hi,
I need to get the final url after a page redirect preferrably with curl or wget.
For example http://google.com may redirect to http://www.google.com.
The contents are easy to get(ex. curl --max-redirs 10 http://google.com -L), but I'm only interested in the final url (in the former case http://www.google.com).
Is there any way of...
Hi ,
in my server i have enabled the CURL , Even am using some contact grabber and paypal , and so many application with curl ,
But i dont know why this Twitter showing response as 417
this is my snippet ,
$host = "http://twitter.com/statuses/update.xml?status=".urlencode(stripslashes(urldecode($message)));
$ch = c...
I want to convert cURL command:
curl -F 'access=xxxx' \
-F 'message=Hello.' \
-F '[email protected]' \
https://example.com
to a NSURLRequest.
Can somebody please help me with this?
...
Hi,
I would like to be able to read the SSL certificate information with CURL.
From the Linux console I get this response header:
GET https://www.google.com/ -ed
Cache-Control: private, max-age=0
Connection: close
Date: Sun, 20 Jun 2010 21:34:12 GMT
Server: gws
Content-Type: text/html; charset=ISO-8859-1
Expires: -1
Client-Date: Sun, 2...
I have series of curl commands that I want to translate into straight up HTTP requests.
I would like to use some live http utility that would record http requests made while I make the curl commands. And from this, I will translate the curl commands to their corresponding http requests.
Any recommendations?
...
curl -F 'access_token=...' \
-F 'message=Hello, Arjun. I like this new API.' \
https://graph.facebook.com/arjun/feed
The documentation says I need to issue one to publish to the wall.
...
I have loved using HTTParty in the past, but at the moment I'm coming up against a problem I haven't been able to figure out yet.
The API I'm interacting with is successfully contacted like so:
curl -X PUT -d 'id=1175600;status=0' http://www.lingq.com/api_v2/ru/lingqs/?apikey=[long-key]
All other functions in this API I haven't had t...
I'm trying to save 3 XML url links to write to local xml cache copy of them. But 2 of the XML url links with parameters passed after ? aren't saving at all ?
only allteams.xml gets saved into multicache folder while other 2 urls don't get saved ?
there must be a better way to do this ?
<?php
$urls=array(
'http://remotedomain.com/api/...
I was wondering if it is possible to post a file - along with other form data - when the file is just a string?
I know that you can post a file that is already on the filesystem by prefixing the filepath with "@".
However I'd like to bypass creating a temporary file and send just the file as a string, but I am unsure how to construct t...
I installed lighttpd, php5 +fastcgi, and php5-curl earlier this morning using MacPorts. I have been able to get the former two working fine, but I can't seem to get PHP to see the installed cURL extension. I did not change the install path for cURL - it is now at /opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so.
I've adde...
Hi guys,
I had a basic Curl script which basically executed a script on remote server.
I was working fine from around 6 months.
Yesterday it stopped working, and was giving back following error.
"Curl error: Failure when receiving data from the peer"
Would like to know if anyone knows on which condition the curl would returned such e...
Hey Guys,
I have a php script that comes down to the following:
while ($arr = mysql_fetch_array($result))
{
$url = $arr['url'];
exec("curl $url > /dev/null &");
}
$url will represent a remote script.
My question is, what can I expect if I try to cycle through 2,000 URLs.
Will opening that many CURL connections cripple my s...
Hello everyone,
I'm just wondering if it's possible to do some automation with php, I.E. going to the href value of id="alinktonextpage", or filling in the values of the form and submitting it.
All this would be not be on my website.
Thanks.
...
Hi Everyone!
I'm new to using CURL, but I have successfully got it to submit ordinary forms in the past. I'm working with a website that uses an AJAX Request to perform a login, I can get the form to fill out the username and password but since the login button is actually a link I can't get the form to submit, is there some other way ...
I am using YQL for some screen scraping, and any quote-like characters are not being returned properly.
For example, markup on the page being scraped is:
There should not be a “split between what we think and what we do,”
This is returned by YQL as:
There should not be a �split between what we think and what we do,�
This also...
hi ! i am retriving information from soundcloud using curl.it gives lot of information .but i want to filter it .
<?php
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'http://api.soundcloud.com/tracks ');
curl_exec($curl_handle);
curl_close($curl_handle);
?>
how can i filter information coming from it l...
Assuming I'm a big unix rookie,
- I'm running a curl request through cron every 15 minutes.
- Curl basically is used to load a web page (php) that given some arguments, acts as a script like:
curl http://mysite.com/?update_=1
What I would like to achieve is to run another "script" using this curl technique,
- every time the other sc...