Questions tagged as 'curl'

0
answers

Curl facebook cookie problem

I'm trying to get into facebook by pho using curl but I'm having the problem:    Cookies required Cookies are not enabled in your browser.   Please enable cookies in your browser preferences to continue. Pieceofcode:curl_setopt($ch,CURLO...
asked by 04.04.2018 / 22:55
1
answer

Get variable from another page

I have this loadChannels.php page with the code: <?php session_start(); header("Access-Control-Allow-Origin: *"); /* Captura a página */ if (isset($_GET['page'])) { $page = (int)$_GET['page']; } else { $page = 1; } /* Acessa o...
asked by 24.03.2018 / 14:49
0
answers

Iframe shows system in localhost - PHP

Good morning I will try to explain my situation and see if there is a solution. I have a server running a web application in java that I want to work only on localhost. Also, on this server, I have a PHP system that is released for inte...
asked by 08.03.2018 / 15:50
1
answer

Curl PHP Google Custom Search

I have this script to do a google search using Google Custom Search . My problem is that when you do the form request returns blank, what would be the problem? <?php define('GOOGLE_API_KEY', 'AIzaSyBLx8EBzpqtwDXZKobQCBpBR893ABlefZc'); f...
asked by 23.02.2018 / 12:48
1
answer

PHP CURL sometimes returns empty result

Good morning everyone! I'm having a somewhat inconvenient problem using PHP's curl functions. Below is a brief description of the scenario before moving on to the code. The script is executed via the command line and is responsible for imp...
asked by 16.02.2018 / 14:04
1
answer

Displaying wordpress posts with curl

there are some sites where the installation of wordpress is in a subfolder called news and I need to display a list of posts in the index, searching the internet I saw that wordpress generated a JSON of the posts. So by giving one more lookup I...
asked by 07.02.2018 / 13:09
0
answers

function only downloads the first file

I'm developing a more download function I went to see in the downloads folder that it only completes the first downloaded file, the rest is 0KB in size, it follows part of the code below. function download($link) { $rand = rand(1, 1466); $rem...
asked by 30.03.2018 / 00:06
1
answer

Accent error when using cURL

Good afternoon, how are you? I am trying to pull some information via cURL from the post office, however it is returning me but with accent error, would I have some way to change the header that is coming from it to correct this problem of acc...
asked by 18.01.2018 / 19:05
2
answers

Restful API authentication error with PHP cURL

I am writing a web platform that uses the API RESTFUL of SPTrans - Live Eye . Authenticate my session with the code: <?php $url = 'http://api.olhovivo.sptrans.com.br/v2.1/Login/Autenticar?token='.token; $curl = curl_init($url...
asked by 14.12.2017 / 17:39
1
answer

Convert CURL command in WebRequest

I need to run the command below: curl -X POST -u "{username}":"{password}" -H "Content-Type: application/json" -d '{ "name": "my_environment", "description": "My environment" }' "https://gateway.watsonplatform.net/discovery/api/v1/enviro...
asked by 02.12.2017 / 21:14