Questions tagged as 'curl'

0
answers

How to send two objects to an api in php

$url = 'www.miapi.com/api/Vales'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_PUT, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,item1,item2); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: applicati...
asked by 10.06.2018 / 03:17
1
answer

Problems when adding a group of devices with firebase CURL

Good afternoon to the whole community, I am using the push notification service of firebase with CURL and laravel however when I want to add a group of devices I get the following error $server_key = 'server_key'; $url = "https://an...
asked by 07.05.2018 / 22:01
1
answer

Error cURL with PHP

I have a PHP that makes cURL requests to a URL and sometimes when I receive data I receive the following: 307 Temporary Redirect 307 Temporary Redirect nginx The PHP with cURL is as follows: $fp=fopen("../datosAPI/bitcoin.json",...
asked by 04.05.2018 / 17:51
0
answers

How can I make a PUT request in cURL using Android Studio?

The request I want to make: curl "https://api.mapbox.com/datasets/v1/{username}/{dataset_id}/features/{feature_id}?access_token=your-access-token" \ -X PUT \ -H "Content-Type: application/json" \ -d @file.geojson This is my geojson: {...
asked by 19.04.2018 / 17:27
1
answer

how to connect to a webservice and send xml in php

I have a project in codeigneiter, I am trying to make a connection by curl with a web service of ringing, I am using the code that they gave me in php, which is fine, only that when adding the variable $ ch = curl_init () my view stops working o...
asked by 27.02.2018 / 19:31
0
answers

the API does not work with merchant_orders

I come with a consultation of the most basic. I am bringing the collection of market payment for the collections webhook: curl ' link $ fechaDesde & end_date = $ currentDate & access_token = $ token & offset = $ offset ' Everything very n...
asked by 22.02.2018 / 15:55
0
answers

Because curl does not extract php data

Good I have a doubt because curl does not extract the data of this url that part of the code is bad or that it lacks to work. <?php $url = 'https://api.youtube6download.top/api/?format=JSON&id=i62Zjga8JOM'; $ch = curl_init(); curl_seto...
asked by 18.01.2018 / 02:39
1
answer

Get all url using googleapis and blogger

Hello I look for some way to get all url entries of blogs Blogger and used this way link Using the Google API I get the following result: // API callback handleResponse({ "items": [ { "url": "http://chicassexyhot.sigue.la/201...
asked by 03.01.2018 / 05:55
0
answers

cURL (API) in Python

I'm accessing the URL API through cURL and I'm looking to do it through Python. I do not know if this can be done but it would solve my job a lot. The steps I'm taking are: I enter this code to my terminal and it returns me the answer: Cod...
asked by 08.11.2017 / 13:40
0
answers

cURL with array, only takes first value

my problem is that I am sending parameters through cURL to a GSM modem that I have ... with a chip to send text messages ... everything works fine, when when I go through an array with destinations it is when it fails. .. only send to the first...
asked by 20.11.2017 / 17:10