Questions tagged as 'curl'

1
answer

In the automatic return of the pagseguro I can not save the information in the bank

I wonder if something is wrong: if(isset($_POST['notificationType']) && $_POST['notificationType'] == 'transaction'){ //Todo resto do código iremos inserir aqui. $email = 'douglas@...'; $token = '95112...'; $url = 'https://ws.pagsegu...
asked by 01.03.2016 / 23:15
1
answer

Get Twitter information without using the API with cURL

I have the following code: $url = 'https://twitter.com/' . $username; $user = curl_init(); curl_setopt_array($user, [ CURLOPT_URL => $url, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_CAINFO => 'ca...
asked by 03.07.2017 / 00:52
1
answer

cURL returning null value in JSON with PHP

I'm studying cURL because I want to make an application with Twitter using login form and password ... yesterday I did this question was very well answered, based on this I am studying cURL , so I have the following code: <?ph...
asked by 27.06.2017 / 20:23
1
answer

regular expression php [closed]

I'm trying to get a whole source code from a website. using CURL I used the regular expression preg_match('/<html>(.*)<\/html>/i', $resultado, $codigo); echo $codigo = $codigo[1]; But it did not work ... where is th...
asked by 25.01.2017 / 20:39
1
answer

Block curl access to my server?

Is it possible to block curl access to my server? Example I have a VIP site with a user generated security key and prevent anyone from logging on the system via curl? I tried with captcha and still can log in via key with Curl     
asked by 20.01.2017 / 16:00
1
answer

Get the URLs from the Google search result page

Hello, I would like some API or any way to get the URLs that Google returns when it searches. For example, I did a Google search with cURL looking for Walmarts, I would like PHP to return all the URLs of the sites. I did not find any such...
asked by 06.09.2016 / 04:16
2
answers

Get external links with cURL PHP

I have this code that returns me the Google page. <?php $request = curl_init(); curl_setopt_array($request, [ CURLOPT_URL => 'https://www.google.com.br', CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER...
asked by 22.01.2018 / 09:25
1
answer

Scan all pages, curl

I need to access a website through cURL and capture content from its page, but it does not show all content on a page, it divides it into several pages at the end it shows that menu to browse page 1, 2, 3 , 4, I need to walk through ALL of these...
asked by 17.01.2015 / 00:40
1
answer

Get deadline with the Web Service of the Post Office

I'm trying to get the deadline dynamically using the Post Office WebService, so I'm using this documentation . If you enter the test page , you can enter the CAP, for example, 4510 and the source and destination ceps to get the retur...
asked by 13.08.2018 / 16:55
1
answer

cURL returning undefined offset

Based in this question , I was interested because some time ago I was doing a Twitter follower generator (followers exchange) and I managed ... but I found the answer to Inkeliz , and I'm trying, I tried hard not to ask for help but come on. W...
asked by 01.07.2017 / 20:40