I am using php curl and i am using the cookie jar for a multi-step crawl. I need the dynamically generated cookies from the server.
But at one step some cookies are generated using javascript. Since curl doesn't run javascript I need to inject cookies to curl at this point.
The only way I can see doing this is manually reading the cook...
Hi guys,
I am trying to benchmark the bandwidth saved from setting GZIP to active with cURL(PHP).
I did this by curl_setopt($ch, CURLOPT_ENCODING , 'Accept-Encoding: gzip');
Below is the documentation for CURLOPT_ENCODING :
The contents of the "Accept-Encoding:
" header. This enables decoding of the
response. Supported encodin...
Hi Everyone,
I want to upload images to some server using multipart post request.
I am using PHP/cURL to send soap request envelopes
Any help would be very appreciated.
Amjad
...
Hi,
how can I select a field in a dropdown box with curl
...
I've been asked to populate a flash file with some data from a database. I said, "Great, I will write some PHP that talks to the database and outputs xml. The swf can call that file."
My boss then told me that that solution wouldn't make the cut with IS, and I would have to find a more secure way of doing it. Ugh!
My proposed solution ...
OVERVIEW:
The code is about making call to the escreen web service using SOAP and Curl with client authentication required. Currently I am not getting any result only HTTP 403 and 500 errors.
The call requires client authenticate cert to be on the callng site.
CODE:
$content = "<TicketRequest>
<Version>1.0</Version>
<Mode>Test</Mo...
I there a simpler code to preform HTTP POST without using cURL? c
I like cURL, but it is overkill for what I am trying to do.
...
acces the page with this code, then it get's the cookie,
this is my curl code
$ckfile = tempnam ("/tmp", "CURLCOOKIE");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/3.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("REMOTE_ADD...
Hi,
I am in a situation where I cannot use PHP cURL module to POST my form data. I have found a great blog post showing how to POST without using cURL here:
HTTP POST from PHP, without cURL
Here's my problem though. When I attempt to send my POST request, the request hits the (other) server but the content (POST data) is not transmitte...
So I have a retreat registration form that is hooked up to PayPal. Now, before I hooked it up to PayPal, I setup code in PHP to go through and check if each field was valid and sanitize them properly. After that, it would add this person to a database.
Now, what I wanted to happen after that is for it to redirect the user to the PayPal ...
The error that alot of people get with Facebook authentication is:
CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
And the only information I can find about it suggets to add the following lines of code
$opts[CURLOPT_...
Hi, i'm trying to scrape a website but the page i tryed to scrape contains a redirect to another page.I put FOLLOWLOCATION parameter on curl but i arrive on a url http://localhost/....pageredirected.php and so on
The problem is that redirect works but DOMAIN is not right (because it is mine not scraped page). Here is code:
<?php
// c...
I tried to enable curl on cygwin but it says bash: curl: command not found
How do I install curl on cygwin?
...
When I download a file with curl through php I cannot seem to be able to delete it afterwards through ftp. I can delete it through the php script, but that's not exactly perfect. If the file isn't downloaded via curl, but still via php I can delete the file, it's just ones downloaded via curl that I cannot delete. When I try to run chown...
hi ,
i created a virtual host where i would manage a separate project on the same machine.
the problem is that when i attempt to make a curl request from the php code in the virtual host, i dont get any response.
How can i set the Curl library to work on the virtual host
Update:
i ran the command on the command line :
curl new_Serve...
For reasons beyond my control I am using PHP4 to write a twitter client. Requests don't work properly - I am having a tough time seeing what's wrong. Any ideas?
I have grabbed the code and banged it in a very simple script here to illustrate essentially what's going on. I've hidden OAuth keys for security purposes.
<?php
$requestToken...
I am having problems with the freebase MQL login service. I am making a post request then the freebase api should send back headers which I will then analyse and get information from.
But the only header I am getting is HTTP/1.0 200 OK
Code
class myFreebaseClass {
....
function doLogin() {
echo $uri = "http://".$this->config['ap...
Hi am doing some testing on the Freebase sandbox, but I can't get the following request to work. It hangs for ages then returns nothing. I have also outputted curl_getinfo() if it helps anyone work out where I am going wrong.
echo $uri = "http://".$this->config['apiSandboxHost'].'/'.$this->config['apiWritePath'].'={"create":"unles...
Hi,
The situation is following. I have a local (development) PHP server (Win + IIS) on my computer and I would like to call a function on a remote server because there is an executable file on the remote server (linux) that does not run on my local computer.
So on the remote server would be a simple PHP page which calls the executable wi...
I want to get the content of some site across the proxy using php. Instead of using curl , i want to do proxy authentications at Apacle level. So that there is no need to change the existing code.
Anyidea please ...
...