Hey all,
Quick question : I have a PHP script which query Pinnacle Cart API through a cURL query. While testing this on my laptop, no problem. I get the XML response and all. But once it's on the remote server... I get no result. I checked beforehand to be sure cURL was installed on the remote server, and it sure is. I don't have the sa...
I am getting the following error using curl:
curl: (77) error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
How do I set this certificate verify locations? Thanks.
...
Hi,
my collage project is struck for the last two days
I have the code to extract the links, but i need the link label also. I need links to be stored in an array and link label to be stored in another array.
for example if the site bbc.com has the code sports, i need $linklabel[0]=sports and $link[0]=bbc.com/sports.html.
The code is ...
<?php
$url='http://edition.cnn.com/?fbid=4OofUbASN5k';
$var = fread_url($url);// function calling to get the page from curl
$search = array('@<script[^>]*?>.*?</script>@si'); // Strip out javascript
$var = preg_replace($search, "\n", html_entity_decode($var)); // Strip out javascript
$linklabel = array();
$link = array();
$dom = new D...
I'm building a Curl web automation app and am having some issue with not getting the desired outcome of my POST action, I am having some trouble figuring out how I can show the full POST request I am sending over (with headers), I have been searching on this but everything that comes up is the response headers, actually I want these too ...
Hello
I am using Joomla as CMS. Right now there is No plugin that enables windows live logins.
I already downlaoded the windows live ID SDK.
The PHP sample works well but I need to make some changes.
I want to have credentials to be checked without being redirected to http://login.live.com! I just need a background check which returns...
I have a web-site based on PHP, to which I would like to add a members-only area. Instead of creating my own registration/login pages, I would like to make a piece of code which will look if the user is logged on a particular site (for simplicity, we could assume that this site is Facebook) and if yes, allow him to navigate on my site. I...
I'm working on a web task automation with curl and not getting the result I want, its for a SSL connection and currently I have Curl set to:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
As I understand it, this means it will just blindly accept any SSL certificate, however what I am unable to understand and seemingly find info on, is ...
Hi,
I am trying to upload a file using cURL/php. The same code is working on one hosted server but isn't on another. To upload file using cURL is there specific setting or configuration required for the apache or php?
Nandini
...
i want to post my password to a page via curl and grab the result, result should be a page with a content.
here is my script
function f($password){
$url="http://upload5.fileflyer.com/view/7MSG4GUCYVN7E";
$useragent="Opera 9.7 (Windows NT 6.0; U; en)";
$ref="http://fileflyer.com/view/7MSG4GUCYVN7E";
$data = array()...
Hey Guys
How do I extract current top 10 twitter trends using CURL. All the php tutorials I found seem to use the old twitter urls which have since changed..
Here is a new url I'm struggling with, the new date at the top seems to throw it http://search.twitter.com/trends/current.json
Any ideas how to echo the values?
e.g. output is
...
I am trying to build a system of monitoring site / server uptime in PHP, the system will be required to check thousands of domains / ips a minute. I have looked into cURL as this seems to be the best method.
Edit:
The system will be required to probe a server, check its response time is reasonable, and return its response code. It will...
Hello i am trying to record how much the user has downloaded when the user aborts the script i want the script to be able to save a text file with information how much they have downloaded with this i will have an idea how to create a quota program, i have tried fopen, fread works grate only one problem it i ant seek for the file, curl d...
I am using the CURL c++ api to get quotes from Yahoo's financial API. The curl api and my code seem to be working fine, however I am getting a "301" redirect message when I tell CURL to visit the url I want. How can I get CURL to follow through to the 301 redirect and get the data I want?
Here is the URL I am using:
http://download.f...
I'm porting over some function using Zend_Http_CookieJar but need some clarification. Presumably the CookieJar only lasts as long as the instance is running. So could I use curl to produce the same thing? :
curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefil...
I'm trying to php/curl scrape data from an .NET site (those with __VIEWSTATE, __EVENTVALIDATION). I monitor headers and post vars using Tamper Data so I'm pretty sure I haven't missed anything. My approach is to micmic the post back when the user click on one of the links and parse the response. But the response I'm getting is a page red...
I am trying to parse an xml document I created in a php file and outputted using
echo $xmlMysql->saveXML();
using cURL I send the information over, but when I try and parse it through using the following code.
$xmlDoc = download_page($url);
$dom = new DomDocument();
$dom->load($xmlDoc);
echo $dom->saveXML();
I get this erro...
I'm writing a script to execute CURL commands for a given user input. The script has multiple helper function to create the list of parameters (arguments) that will eventually be passed to CURL.
A stripped out example, is as follows :
#!/bin/bash
function create_arg_list
{
# THIS HTTP HEADER VALUE COMES FROM THE USER and MAY CONTAI...
I have a PHP script that goes thru all urls in the database, checks which http code they return and then update the row. It's a simple do/while loop. In each iteration it fetches url and uses curl_getinfo() to get headers.
Script worked great but after a while I noticed that PHP was using 99% CPU and speed of one check was really, reall...
Hello!
I am developing a website that will be communicating with a REST-protocol. The owner of the REST service wants a cookie to be sent along with the REST call, perhaps via header.
How is this done in PHP, how can I send a cookie along with a REST-call?
Thankful for all help!
...