Tagged Questions
0
votes
0answers
9 views
Force IPv4 in cURL in PHP application
Is there any way to force cURL to use IPv4? I'm looking for like a global setting, like php.ini setting or something like that.
0
votes
0answers
3 views
SharePoint web service persistent authentication using PHP
I want to build a php application that uses a restful SharePoint web service (https with simple http authentication).
I did a request with CURL and all works but it took a very long time (3sec). ...
0
votes
1answer
15 views
Get data from SAP CRM to PHP
I'm trying to automate getting(posting) data from SAP CRM using my server (cURL/PHP+MSSQL), but have some problems with it.
There is no access allowed except this web interface.
I tried to use ...
0
votes
0answers
19 views
PHP Acessing remote script with directory authentication
i'm trying to access a remote script using curl.
Normally is not a problem, just do curl_init, set some option and do curl_exec. Simple enough.
Now some complication.
The remote script is an ASP ...
-1
votes
1answer
26 views
Extract data form php/curl parsing
I have a html document to parse with curl.
This is the part where i'm trying to extract particular data :
<table align="center"><td class="normal" valign="top">
<b>Name ...
0
votes
2answers
22 views
How can we retieve values from an API
I have a trouble .From HunterExpress API, I want to fetch freight charge amount for that passing postCode,product dimensions/weight etc I am using the following code to fetch freight charge
$data ...
0
votes
1answer
14 views
How to set cookie in PHP cURL request
I'm trying to establish a connection with a real-estate listings API in Canada (CREA), and according to the documentation:
A successful Login response header includes a Set-Cookie with
...
0
votes
0answers
7 views
Ingress Login Error
Same Question: Login to Google Ingress
I attempted to comment there, and it was deleted.... not good monitoring.
I am trying to login with PHP, they have a solution there that ALMOST works, but not ...
-3
votes
1answer
13 views
sample of amazon mws submitFeed with PHP [on hold]
I searched for too many hours now to find a solution for my problem but I wasn't successful.
I need an example of the Amazon MWS API for the SubmitFeed Function using PHP.
The SDK and the ...
-2
votes
0answers
11 views
How to post step 1 form details by php Curl and get next redircted page data & Then post step 2 form details
Need to extract hidden variable values from crawled website page source by PHP Curl.
With that information and other form required fields to be posted to step 1 target url by php curl.
And then ...
0
votes
0answers
17 views
PHP cURL request with Zend framework
I can call a webservice using the following PHP code:
$content = json_encode(array(
"email" => "[email protected]",
"lastname" => "Test"
));
$url = ...
0
votes
0answers
18 views
How to post data to ASP site using php curl
I need to post data to ASP site using php curl from my website.
The ASP site is http://www.hotfrog.com.au/AddYourBusinessSingle.aspx
For this point I approached like below
Crawled the webpage html ...
-2
votes
0answers
14 views
curl response for https site in php
I need to access a https page using curl and use that page source for further manipulation. But i am not able to access if its a https site.
Here is my code:
$url = "https://www.cia.gov/";
...
0
votes
0answers
23 views
Connection problems with cURL in PHP
Good day,
I have a web service that makes multiple cURL requests via PHP to different external APIs including panoramio.com, flickr.com, worldweatheronline.com, etc. Everything worked well for a year ...
1
vote
2answers
35 views
get table data with curl and regex
this is my code to extract data from table.
but I want delete links.
and how pieces title and price to array.
<?php
$ch = curl_init ...
0
votes
0answers
12 views
PHP Curl Multi (curl_multi) and proxies,
So,
I have an issue with needing to make multiple http requests (i mean 100's, even 1000's) using PHP, and these requests need to be run through a proxy to protect the server info/ip.
So, the ...
0
votes
1answer
14 views
PHP Curl - Wistia API Upload
I'm trying to upload a movie to the Wistia API by CURL (http://wistia.com/doc/upload-api).
It works fine using the following command line, but when I put it in PHP code, I just get a blank screen ...
2
votes
1answer
19 views
Last loaded URL of CURL resource
I'm writing something a little complex with CURL. I happened to have a situation where I need to know the last URL CURL has loaded (if it was redirected) or just the original URL from curl_init($url).
...
0
votes
0answers
16 views
Facebook feed not returning anything with cURL
I'm using the following code to pull in a facebook feed:
function disguise_curl($url)
{
$ch = curl_init($url);
curl_setopt( $ch, CURLOPT_POST, false );
curl_setopt( $ch, ...
2
votes
1answer
32 views
DOM structure, get element by attribute name/value
I see a lot of answers on SO that pertain to the question but either there are slight differences that I couldn't overcome or maybe i just couldn't repeat the processes shown.
What I am trying to ...
0
votes
0answers
6 views
curl connection to mediawiki api yields empty reply for larger post requests
I am trying to generate Pages to a semantic mediawiki using the mediawiki api. If the content submitted exceeds a certain size, I run into trouble:
regularly, the server respondes http code 100
if ...
-1
votes
0answers
17 views
fputs only returns unknown command
I have a very small script inwhich I'm trying to get it to post a command in IRC.
<?php
set_time_limit(0);
$socket = fsockopen("irc.twitch.tv", 6667);
fputs($socket,"USER ...
0
votes
0answers
8 views
Issue with curl on specific server
I have an issue with curl on one of my server but I don't know why ?
<?php
$url = "https://xxxx";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, ...
0
votes
2answers
16 views
ASP.NET auto submit problems
I am trying to logon users automaticly to an external site https://helpdesk.itslearning.com/Index.aspx
The idea is that I do the following steps:
Retrieve the page with cURL in PHP
Parse the HTML ...
0
votes
0answers
16 views
How to conevert fsockopen to CURL php
I have original source fsockopen
I want to post information fsockopen slow, but I would like to change into a curl, but I do not know, I think it can be done or not.
I hope very much to succeed with ...
2
votes
0answers
27 views
login with facebook not working with php 5.2 [duplicate]
I try to set login with Facebook Plugin with simple core php code.
it gives me this error
Notice: Use of undefined constant CURLOPT_IPRESOLVE - assumed 'CURLOPT_IPRESOLVE'
in ...
0
votes
1answer
16 views
fsocketopen() Not connecting to server?
I've been trying to connect to a Twitch chat via IRC. I've added an echo function to test where I had connected or not as that page was blank and an account didn't join the IRC.
Here is my code:
...
0
votes
1answer
28 views
PHP cURL behaviour like html form?
Hi is there any way to use cURL like form?
For example I have url mysite.com/curly.php which have the cURL script that target to mysite.com/straight.php that will display every data that I posted ...
-5
votes
0answers
17 views
Site submit some data with php curl i wana see what it submit [on hold]
If a site submit something with php curl can i see what he submitted means what request it send . any plugin or tool i can use
-5
votes
0answers
24 views
Forward GET & POST request to another page [on hold]
I am Inside a PHP file and I want to forward all the headers, $_GET and $_POST parameters that come in this file to another url.
I saw an example in stack overflow that shows how to do this for
Any ...
0
votes
0answers
14 views
Google OAuth 2 - redirect_uri_mismatch error but the redirect URI in API settings is proper
I've been following the guide at https://developers.google.com/+https://waybackassets.bk21.net/signin/server-side-flow to the point where I have an authorization code sent to my server. Then in PHP I attempt to get the access ...
-1
votes
0answers
20 views
How to send sms? [on hold]
I want to send SMS with curl, I saw many script for this propose, But I dont know why my scrip doesn't work. here is my code
$url = 'https://mm.inmobile.dk/Api/V2/Get/SendMessages';
$request = ...
1
vote
1answer
29 views
Process request of cURL
I made a cURL request code and i'd like to process the data it sends.
cURL code:
$url = "http://rbvconsultancy.com/api/post.php";
$xml_builder = '<?xml version = "1.0" ...
-3
votes
1answer
16 views
curl not working on godaddy linux shared hosting
I am using Godaddy Linux shared hosting. I need to use curl to send request using sms api. I have searched a lot on Google and many others are facing same problem. I have tried there solutions also, ...
-2
votes
0answers
31 views
Remove script tag with specific function or word
I am getting input from a web page through file_get_contents().
However, before outputting the html, I want to remove specific script tags (ones that I don't want to be included on my page).
I tried ...
0
votes
1answer
5 views
cURL on DreamHost Slow taking ~20 seconds
Curling the Facebook API from DreamHost is super slow. Sometimes it comes back in 1-2 seconds, other times 20 seconds. It has been really messing up my site.
function curlUrl($url, $post = null) {
...
0
votes
2answers
28 views
Composer (installing / updating) always fails
I have a stable connection, however composer always throws Composer\Downloader\TransportException when I run composer update on my project root, followed by messages stating that I had a timeout error ...
0
votes
0answers
28 views
api call with curl (PHP)
How I can send this request with curl?
Copy.com API Documentation
GET /oauth/request?scope=%7B%22profile%22%3A%7B%22read%22%3A+true%2C%22write%22%3A+true%7D%7D HTTP/1.1
User-Agent: ...
0
votes
0answers
6 views
public-api.wordpress.com returns unauthorized on creating new post using oAuth
I'm trying to create a new post using the JSON API by making a cURL request.
I have added the authorisation token on the http header but get the following error:
...
0
votes
0answers
14 views
Showing logged in user with curl or PHP
How would I go about showing the logged in user say somebody with the username "Example" logs in using the login form below I would like for it to replace the login with a drop down menu and have his ...
-3
votes
0answers
19 views
Login to linksys WRT160NL router using curl and php
I'm new to curl and I'm finding it difficult to log into linksys WRT160NL router using curl php scripts. Header returned on logging in are as follows:
http://192.168.11.1/cgi-bin/luci
POST ...
-1
votes
1answer
11 views
set curl request header for remote domain
I am updating some fields in remote site using curl. But I completed is:
I am able to logged in to remote site, able to fetch csrf token that I need to use in curl request. But I am not able to set ...
0
votes
2answers
26 views
“Dynamic” rewrite with mod_rewrite and apache
I´ve a bit of a "strategic" problem with creating a nice mod_rewrite solution for a shop. The shop has different kind of pages:
Products (products.php)
Categories (category.php)
Content ...
0
votes
0answers
21 views
Curl cant download Composer installer, complaining about 8888 port
The steps to install composer globally is there: https://getcomposer.org/doc/00-intro.md#globally
The commands there are:
curl -sS https://getcomposer.org/installer | php
mv composer.phar ...
0
votes
1answer
9 views
Azure won't cURL a google site search xml
I'm running the XML to PHP install of paid Google site search.
https://code.google.com/p/google-csbe-example/downloads/detail?name=gss.php&can=2&q=
My initial implementation runs perfectly ...
0
votes
1answer
23 views
Reply to the Notification Post in sagepay (PHP)
I am creating a inframe payment gateway for Sagepay. I have the first bit working fine, using wp_remote_post to send my request and getting back an ok with the next url and putting that in an iframe. ...
0
votes
0answers
16 views
PHP curl_exec request taking many times longer than the same request directly through curl.exe
I am building an application that needs to run through a lot of log lines and do some processing, which includes checking a bunch of IP addresses. This checking is done by sending a request to a third ...
0
votes
1answer
13 views
Curl is setting content type as text/javascriprt even I mentioned in code as text/html [closed]
I am trying to get page content using curl, but content type of the page is set as text/javascript; even I set it as text/html in the curel call using below call
curl_setopt($ch1, CURLOPT_HEADER, ...
0
votes
0answers
11 views
PHP Curl Randomly Hangs
I wrote a PHP script that curls URLs to get the page html. The page content comes back about 50% of the time and the rest of the time only part of the content is returned and the script fails to ...
0
votes
1answer
27 views
PHP curl post image from URL
Currently, to POST image from local folder I use curl and PHP, here is my code:
$url = 'http://myprestashop.com/api/images/products/1';
$image_path = 'C:\\my_image.png';
$key = 'My web service key';
...