I looking for a simple way to wire the homepage of my website so that it fires off a Push notification message to my iPhone every time someone lands on the page (just visiting in their browser). I'm aware this could become annoying!
I currently send regular notifications to my iPhone using cron and curl to check sites / RSS feeds for ch...
I have a problem logging onto a page and then using it with cURL.
I login, get PHPSESSID and cookie, and then try to do an action but page returns 'not logged in'.
But if I manually log in and copy/paste that PHPSESSID into curl cookies .txt file, everything works fine. So why doesn't it work with PHPSESSID from cURL?
EDIT:
It also work...
I need to upload multiple files from directory to the server via FTP and SFTP.
I've solved this task for SFTP with python, paramiko and threading. But I have problem with doing it for FTP. I tried to use ftplib for python, but it seems that it doesn't support threading and I upload all files one by one, which is very slow.
I'm wonderin...
can curl be used on google app engine ?
...
$ch = curl_init("url");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "test");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$outputArray = curl_exec($ch);
Then $outputArray will contain:
Array
(
[0] => Array
(
[r1] ...
Hi am trying to post some data on a website using CURL. The posting process has 3 steps.
1. enter a URL, submit and get to the 2nd step with some fields already completed
2. submit again, after you entered some more data and preview the form.
3. submit the final data.
The problem is that after the second step, the form data looks like ...
I have a curl class, called Curl.
Let's presume i have this code:
$url = 'http://www.google.com'
$fields = array('q'=>'search term'); //maybe some other arguments. but let's keep it simple.
$curl = new Curl();
$page = $curl->post($url,$fields);
$page will have some images wich curl doesn't load them by default. I need to know how i c...
I'm running a curl request on an eXist database through php. The dataset is very large, and as a result, the database consistently takes a long amount of time to return an XML response. To fix that, we set up a curl request, with what is supposed to be a long timeout.
$ch = curl_init();
$headers["Content-Length"] = strlen($postString);
...
$page = $curl->post($baseUrl.'/submit.php', array('url'=>$address,'phase'=>'1','randkey'=>$randKey[0],'id'=>'c_1'));
$exp = explode('recaptcha_image',$page);
The id recaptcha_image is not found although if i echo $page; the webpage will be displayed and surprisingly even the recpatcha div (with the image itself). Curl shouldn't load th...
hey
i made a script that uploads files to different servers using php curl and the problem is that it eats all my upload bandwith and my apache does not respond as i would like.
the call is made from the php-cli and can not use any apache bandwith limiting bandwith
thanks in advance
...
I have a problem while using the file_get_contents function. I am using it to get a response from a different web server, but it's not returning anything (shown as empty string using var_dump). Also, the problem is only while calling this specific server, because I got result when I used Google's address; and it's working fine in my loca...
i am using curl and i am passing url, with page no=2 but it redirect to first page.i need your help please help me
example if i passed= http://itunes.apple.com/us/genre/mobile-software- applications/id6018?mt=8&letter=A&page=2#page
it redirect to= http://itunes.apple.com/us/genre/mobile-software- applications/id6018?mt=8&letter=A&pa...
Hi guys,
I have a little doubt. I need to get a list of the files inside a specific directory on a SFTP server. I will use CUROPT_DIRLISTONLY in order to get just the names, but I'm not sure how to get them. This is the peace of code I have by now:
string baseUrl(serverAddr + "/" + __destDir);
curl_easy_setopt(anEasyHandle, CURLO...
I'm trying the following code to send post data to the login form, then reload that page in the browser as a logged in user. somehow it's not saving the cookie, and reusing it for the header() function, can the same thing as header be done by calling curl again after sending the login details?
..
$ch = curl_init();
curl_setopt($ch, C...
Hi, I am a newbie in java and wanted to use curl in java. What is my question is curl built-in in java or I have to install it from any 3rd party source to use with Java. If so, how to install curl in java. I have been googling for a long time but didnt find any help. Hope anyone can help me out there.
Thanks in advance.
...
Hi, I'm using the following code with cURL:
function _getStatsDataXMLString($url) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setop...
I have a list of 100 proxies. The URL I am interested in is abc.com. I want to check the number of proxies which can successfully fetch this URL and the time taken for the same. I am hoping I made sense. I am a Python noob. I am looking for a code snippet. A helping hand is really appreciated :)
Proxies :
200.43.54.212
200.43.54.212
20...
Is it possible to open a curl like object in MySQL?
What I would like to do is create procedure which would check to see if a certain value is returned from a specific URL like http://example.com/inschedule?id=200&time=20m. The returned result would be a simple string like 1 or 0.
I know it is better to have a script do this by pu...
Im writing a form to post data off to paypal, and this works fine, i create the form with hidden fields and then have a submit button that submits everything to paypal.
However, when the user clicks that button, there is more that i want to do, for example change their cart status in the database. So, i want to be able to execute some c...
Why am I having problem curling on this page:
https://traderydex.com/login/index.rails
Here's my code:
<?php
$url = 'https://traderydex.com/login/index.rails';
$data = array('UserId' => 'username', 'Password' => 'p@$$wod');
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "...