0
votes
1answer
6 views
Make session work with Curl (ZF2)
I'm working with REST in my Zend Framework 2 application. In order to test my rest calls, I use Curl to send REST requests as follows:
$client = new Http\Client();
$client->setAdapter(new ...
-1
votes
0answers
505 views
PHP DOMDucment and DOMXpath seem to be broken [closed]
So here is my problem in a nut shell. I'm working on a web scraping app for work and I've ran into a snag. I'm trying to load the HTML markup of a site using CURL, then use DOMDocument and XPath to ...
1
vote
0answers
50 views
How to recive the output from cUrl
i've been tasked converting a payment gateway for magento from asp to php, the asp one is outdated for an old site and what's required is a new one, looking at all of the asp code i can easily do it ...
1
vote
3answers
4k views
Read xml data from url using curl and php
I want to read XML data from a URL. I have the url as follow
http://www.arrowcast.net/fids/mco/fids.asp?sort=city&city=&number=&airline=&adi=A
Here is my code
...
1
vote
0answers
19 views
I have configured curl but it does not work
I am using windows server and have ran the following code to find my php.ini.
<?php
infophp();
?>
Then uncommented the extension=php_curl.dll and set the extension path on my ...
0
votes
2answers
27 views
PHP Post & Redirect with cURL Same As HTML Form [closed]
In HTML we can create a form and put input data then send it as POST to some destination; It means we send and redirect in the same time and the destination detect both as a same thing. I want to do ...
0
votes
1answer
32 views
How do I extract text data from a web page? [duplicate]
Okay, so I have the following function that grabs the web page I need:
function login2($url2) {
$fp = fopen("cookie.txt", "w");
fclose($fp);
$login2 = curl_init();
curl_setopt($login2, ...
0
votes
1answer
19 views
PHP CURL Web Service Call
I have the following code in order to call a Web Service from php, using curl:
<?php
echo "Init<br />";
$url = ...
0
votes
2answers
68 views
Twitter search api 1.1 and PHP CURL: Could not authenticate you
I am using James Mallisons Twitter-API from Github:
http://github.com/j7mbo/twitter-api-php
After passing the authentication credentials I try to get a list of tweets around defined geo coordinates:
...
0
votes
0answers
8 views
Unable to set Cookie in curl Request
i have created a Register script for this site.
i know there have captcha at register, but thats not problem, when i running it, its showing "Your Session Expired"
its seems that i have some cookie ...
0
votes
4answers
1k views
Curl request not working on live server
Can anybody tell me why this CURL code only works on my local server and not on live server?
Tried on 3 different hosting and nothing works.
Checked everything on live
1) Curl enabled
2) PHP version ...
0
votes
1answer
29 views
Using jQuery instead of cURL for REST API calls in PHP
I've been successfully making API calls using cURL in PHP which returns a JSON array on my local machine. For some reason when I push this code to my host (bluehost), I get back nothing. I don't get ...
0
votes
1answer
25 views
cUrl - getting the html response body
I'm sure this is fairly simple. I'm using the function below to retrieve sites raw html
in order to parse it. during my testing, I decided to run my code on stackoverflow.com
Instead of getting the ...
3
votes
2answers
97 views
+50
Curl PUT request with file upload to PHP
I'm trying to upload a file using HTTP PUT.
After reading a bit it seems the $_FILES array is only with POST and multipart/form-data. While with PUT, I'd need to manually read php://input to get the ...
1
vote
1answer
25 views
Unable to set the cookie in curl
I used this code to register the site.. But it shows "Your Session Expired, Please Login Again"
It seems that I have some cookie Problem... but I don't understand what is the problem..
and its not ...