Questions tagged as 'curl'

2
answers

Problems with Curl result and file_get_contents

I'm trying to get an image from a website to use imagecreatefrompng (), but the result was never what I expected ... Url: link in the case when I call as <img> works perfectly <img src="https://www.habbo.com.br/habbo-i...
asked by 18.01.2017 / 14:16
1
answer

PHP - CURL Session finished?

I'm trying to create a theft to automate a process, as post here: Automate process - Robot? Given the suggestions, I'm following using cURL. What is happening is the following: It manages to login, goes to the second page where the form is...
asked by 26.07.2015 / 00:04
2
answers

Get a value inside the HTML cURL

I want to get a value that is inside the html of a page <a href="https://www.site.com/user.asp?ref=fvFCF9D8N4Ak"> I want to get only the value ref=fvFCF9D8N4Ak I'm using cURL and php and thought the solution was a regex....
asked by 11.12.2014 / 22:06
1
answer

Using Stratum protocol in PHP is it possible? Is there any equivalent to Go's 'net.Dial'?

I wanted to use the Electrum servers, listed here , it uses a protocol called " Stratum, "which is documented here , but I do not even know it's the most up to date one. I can "work" using the tls library and net (in case I do...
asked by 07.09.2017 / 00:36
0
answers

Returning content from a form via cURL

I have this code that logs in to Instagram, however I want it to open in a modal or any other kind of thing to fomulario from instagram when checkpoint is required , see: <?php $username = 'conta'; $password = 'senha'; functi...
asked by 22.01.2018 / 17:42
1
answer

cURL - PHP; How to do a looping in code?

I need at the end of the code to delete the downloaded files and download again, to keep repeating this every 4 min. Every 4 min he runs this "download, delete and download again" script. Home How to make?! Thank you from the heart to whom to he...
asked by 28.07.2017 / 13:23
1
answer

cURL Friendships / create, bad authentication data

Good with the help of Inkeliz response, this question , I was able to authenticate with Twitter via form. login.php file : <?php require_once '../modules/config.php'; require_once '../modules/class/Cookies.php'; $cookie = []; $use...
asked by 10.07.2017 / 21:14
3
answers

capture information from sites [closed]

How do Buscapé and other sites get information from sites? is it through the curl or an xml that the store sites make available?     
asked by 04.05.2015 / 16:07
2
answers

How to make a request with curl

Hello everyone, I'm involved in a project and I need to make a request with curl to get data from an api. But I've never used curl in php that way. Can you help me? curl -X GET https://jsonodds.com/api/odds/nfl -H "JsonOdds-API-Key: yourap...
asked by 14.03.2017 / 17:49
1
answer

curl_init php does not work in friendly url?

I'm doing tests with curl_init php I happen to have the links like this: http://localhost/produto/novo Internally it accesses the new.php file, but I'm using htaccess to work with friendly URLs I need to make a file that will accept q...
asked by 14.09.2018 / 06:52