Questions tagged as 'curl'

1
answer

What is curl / curl_setopt

I'm doing an integration with MailChimp, and I came across this code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $submit_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT...
asked by 16.04.2015 / 15:06
3
answers

Simple National Consultation (by CNPJ)

I'm trying to implement a query of Simple Nacional , the operation is similar to the query by CNPJ of the revenue. Details I've seen so far: After loading the page, it executes a ajax ( file captcha2.js ) that returns 3 ite...
asked by 21.05.2015 / 22:42
1
answer

Curl cookies expires vs n / a

The question is, in network of the browser console says that cookies do not expire, see the image below: Butwhenyoutake(makearequestofthese)thesecookieswithcurlexpire:  ct0=e3197b1390ba24c4ae827fc6740344fa;Expires=Mon,Oct232017  14:21...
asked by 23.10.2017 / 10:31
2
answers

Inheritance or Dependency?

Well, my question is this. I am refactoring a system where I have an integration with a REST API, there is a class called Marketplace (which makes the API queries) which I currently extend from class Curl (which is a simplified int...
asked by 22.11.2014 / 15:53
1
answer

Problem with cURL, get message body even with http! = 200

I have a request in my API: $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'link da api'); curl_setopt( $ch, CURLOPT_FAILONERROR, true ); curl_setopt( $ch, CURLOPT_TIMEOUT, 10 ); curl_setopt( $ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT...
asked by 06.10.2016 / 17:04
2
answers

Login to the NFe portal with cURL and PHP

I've done a lot of research on this and so far I have not been able to do anything concrete. Is this possible? I want to make a form with the access key field and the captcha code to fill out. soon this data will be sent to the nfe portal and...
asked by 08.05.2014 / 13:57
1
answer

Questions to implement a webservice

I have a question regarding the implementation of a webservice, see the logic: I have a process that fetches data from multiple users on a system (system A), and I want to get this data and send it to another system (system B), in both cases...
asked by 03.05.2016 / 21:45
1
answer

Curl php is not working [closed]

I'm using php curl on the server. function getSite($url){ $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); echo curl_error($ch); $output = curl_exec($ch); curl_close...
asked by 02.07.2016 / 01:56
0
answers

How to understand the requisitions required in cURL?

Yesterday I opened a question I was forced to erase it, because I could not ask correctly. This question I'll try to explain it in parts, come on. 1 - I monitored Twitter, following a person, I got these protocols: curl "https://api.twitter...
asked by 30.08.2017 / 20:41
2
answers

Difference between file_get_contents and curl?

I wonder if there is any difference between using cURL and file_get_contents and which one is safer? Home Thanks in advance.     
asked by 13.06.2016 / 18:31