Questions tagged as 'curl'

1
answer

Print Curl array

I make a curl in php in a url and it returns me: array(2) { ["tip"]=> int(1) ["msg"]=> string(3) "826" } I just want to get the number 826 and work with it in php. Can anyone help me?     
asked by 23.05.2016 / 15:26
2
answers

Twitter data and blocked account vitrification [duplicate]

Following the concept This happened to me, and now it does not want to work any more. First I enter with a normal account, without being blocked. Second Soon it's on my system and it blocks, I go on twitter and it sends me to...
asked by 22.10.2017 / 18:32
2
answers

PHP Curl Twitter Check if data is correct

I was able to do what I wanted, but how do I check to see if the user data is correct? In the previous question I asked how I would do to get all cookies if the user and password exists on Twitter, I was able to do this with the code I'm goin...
asked by 05.10.2017 / 00:26
1
answer

PHP CURL issues "unable to get local issuer certificate" error

I am trying to get data from an API using the PHP CURL extension but it is not working. The same code on another server is working. Here it works: Buthereitnolongerworks: Thecodeis:<?php$con=curl_init();$url="https://api.moloni.com/v1/comp...
asked by 01.02.2016 / 12:42
1
answer

HTTPS via cURL JSON response

I'm trying to get the next page return with cURL. link How do I do this, being the HTTPS protocol?     
asked by 07.06.2014 / 17:46
1
answer

Consume REST API with PHP

I am starting the studies of some RESTful APIs and I have a sense of what REST is and an API. However, I'm still kind of confused about the process. LinkedIn provides a rich RESTful API through its REST Console, for example a POST call...
asked by 09.11.2017 / 14:07
2
answers

Ways to use cURL with PHP?

I'm studying cURL to continue my application , I reviewed my code and monitored the network Twitter and got the following HTTP Headers : curl "https://twitter.com/" -H "accept-encoding: gzip, deflate, br" -H "accept-language...
asked by 14.07.2017 / 21:36
1
answer

how do I make get and post requests through curl?

I have this class with the following methods: public function __construct($url,$followlocation = true,$timeOut = 30,$maxRedirecs = 4,$binaryTransfer = false,$includeHeader = false,$noBody = false) { //setando valores nas variáveis...
asked by 25.08.2017 / 16:24
3
answers

I need to check if my JSON is empty to fetch url with parameter defined in the curl

function BuscaMarca(marca, modelo, anomodelo) { marca = $('#marca').val(); tipo = $('#tipo').val(); $.get("curl.php?tabela=BuscaMarca&marca=" + marca + "&tipo=" + tipo, function(data, status) { if (data == 0) {...
asked by 27.10.2016 / 15:30
1
answer

Slow down file restricted file

I have a file in php proceso.php that receives information in looping via jquery and makes a request to another page with curl, this file does something around 4 to 5 thousand requests one by one, everything worked much more after I restricted a...
asked by 04.11.2017 / 05:36