Getting super frustrated trying to get this working. Basically this is for a site (x10hosting.com) where I can't include the zend gdata framework, so I'm trying to use the Google Data API with php cURL to access it. The most I've been able to do is return a list of the supplied usernames worksheets, using this script:
<?php
// Construc...
Hi,
I am using php 5.2.9
I have an XML buffer which I need to post to some HTTPS URL.
What is the correct way of doing that?
I see various examples on the web, and none of them seem to be working for me:
Some define the cURL headers like so:
$headers = array(
"POST " . $page . " HTTP/1.0",
"Content-type: text/xml;charse...
Hi All,
If I open this .JS file (link text) in Browser I get back following in browser window:
var PHONE_CNT=2;var PHONE_CNT2=0;var PHONE_CNT3=0;var EMAIL_CNT=2;var SHOW_CNT=1795;var PH_c="";var PH_1=0;var PH_2=0;var PH_3=0;
PH_1 = "JUQyJUFCJThDJUM5JThFJUQzJTgzeSVDMiVEQyVCQ2ElQkUlREQlQzglOUUlOTR6JUE2bSVCN3ElOUIlRTglQzQlQkYlODUlRDklQjIl...
I am using a server with CGI interface and trying to get a script on there to use curl to get data from an api in another directory like so:
website/admin/pages/ -has a curl script that calls
website/api/pages/
This fails. I don't even get a response shown in the curlinfo that should give a header. It just has a 0 for header and not a...
Hey guys,
I ran into an interesting issue today when I was working on an application I'm developing. Hopefully someone knows why this is happening / how to adjust my work flow for it!
Background:
I'm writing an application that helps students at universities get in touch with each other. The basic workflow is as follows:
User ...
Ok, I'm pretty new at programming and have been using curl to execute scripts in other folders of my site and passing get and post variable that way.
Am I being stupid or is this the only way to do this?
...
I am writing a php cron job that reads thousands of feeds / web pages using curl and stores the content in a database. How do I restrict the number of threads to, lets say, 6? i.e., even though I need to scan thousands of feeds / web pages, I want only 6 curl threads active at any time so that my server and network don't get bogged down....
I just need to fetch an https page, and I'm using curl currently by having the curl.exe application in my Path and calling it with a Perl file. However, then I get the error "* Protocol https not supported or disabled in libcurl". I've been looking around and I can't find a solid set of instructions to get it to work. I have installed cy...
I'm trying to interface with the Google Contact API, and in order to update a contact on the remote side, I need to use a PUT request instead of POST.
Since the data I want to PUT is already in memory, I really don't want to deal with file pointers, which seems to be the default behavior of CURLOPT_READDATA. Thus, I understand I need to...
hi...i want to make a login form to login to a web... but something is wrong..
when i copy default form from the site... it works.. it has a submit btn and has no name just a value .... when i change value...it not work... i want to know how the input be send without any name... thank you
<form id="frm-12827221184c74c9466e522" method="p...
The code:
// That works pretty well
curl -d "user%5Blogin%5D=some%40email.pl&user%5Bpass%5D=testpass&user%5Bmemory%5D=on&user%5Bsubmit%5D=Login" -L -c cookie.txt http://turbobit.net/user/login
//But this PHP code doesn't
$headers = array('Content-Type' => 'application/x-www-form-urlencoded', 'Referer' => 'http://turbobit.net/');
...
I'm creating a site for a university where we have to include the university's main navigation at the top of the page. Rather than re-create their navigation, I want to load it dynamically.
First I thought I could use an iframe and just trim it to the navigation.
However, when a link is clicked it opens in that frame, when i want it i...
Hi
I have a test wordpress intallation on localhost and recently I noticed the administration pages load very slow.
Everytime I'm connected to the internet and open the /wp-admin pages it takes 14-15 seconds to load. This does not happen in the front end.
Is there any way to get info about all the http requests that are being made in t...
I have been trying to set up curl with php 5 and apache 2.2 for at least a day now and I have been thrown in so many directions. None of these directions worked for me. I have uncommented the
extension=php_curl.dll
and set the
extension_dir = "c:\php\ext"
All of this was in the c:\php\php.ini I was then told that I am supposed to edit...
I know about the option to set the internal memory
ini_set("memory_limit","30M");
But I wanted to know if there is a better approach for querying data?
I have a WHILE LOOP that checks to see if I need to query for another 1000 records.
using the offset as the starting record number and the limit as the returned records, I search for...
Hi,
Let's say i got a vps hosting with a dedicated ip, can i make a curl php script that receives a url, fetch it, and output it, and make all this as a proxy server, so i can put my vps ip in the proxy settings of the browser.
Is there any way to do that?
Note: Please don't suggest me a web based proxy like glype.
Thanks
...
Anyone knows the Ruby's counterpart of cURL?
I am trying to send XML through HTTP POST but I keep getting Bad Request and Unauthorized. I saw the sample source code in PHP and saw that the sample code uses cURL to do this.
...
I am having problems consuming a WCF web service (PaySimple's v3.00 API) using php curl. I am trying to post an xml payload to the service and I keep getting a 400 - Bad Request error. When I using Firefox's Poster add-on, I can post the very same payload and I get the expected response - 200 OK with an XML response containing the requir...
how to get all content (HTML Code) of any web page not in my server by php
...
UPDATE: Turns out my code works. Browser was caching previous failed response. Thanks for the pointers.
I'm building a prototype and one thing I'd like to do is perform a service if the user is a valid member of NYTimes.com by providing their credentials.
Using curl, I'm trying to perform a login to the site, and then check for succes...