Questions tagged as 'curl'

1
answer

Save cookies from one request and use on another then cURL

I am trying to login to a site and save the cookies to access other pages, I found the 'CURLOPT_COOKIEJAR' option that saves the cookies in a NETSCAPE file, the question is how would a second request be made to another URL using other par...
asked by 28.05.2018 / 07:32
1
answer

How to suppress the return of curl_init php?

This same function I put in another question for another reason, in this question I want to delete the text that $ result returns: ... $fields = http_build_query($data); $post = curl_init(); $url = $url . '?' . $fields; curl_setopt($post,...
asked by 25.05.2018 / 01:15
1
answer

VIACEP did not find the ZIP code variable to return to the result in PHP

Hello, Only the zip code search to find the city and state works, but the city and state search to find the ZIP code does not work because in JSON, the zip code (% with%) is inside the keys of the numeric class and there is no state-city clas...
asked by 05.04.2018 / 09:12
1
answer

Code Repeat

I'm having problem with code repetition in my CURL connection class, the class is being declared as follows: <?php if (!defined("ROOT_PATH")) define("ROOT_PATH", dirname(__FILE__, 2)); require_once ROOT_PATH."/helpers/Helper.php"; class P...
asked by 01.04.2018 / 03:55
1
answer

Return entire page via cURL

I need to return a page that is in text / html , but it is encoded with zlib , yes I tried to decode but no chances, http://php.net/manual/pt_BR/function.zlib-decode.php">zlib_decode , is not documented so I did searches but everything without...
asked by 03.01.2018 / 21:50
1
answer

How to hide the cookies.txt from curl

Ihaveacodeinphpthatmakesarequestwithcurlonapage,howeveritsavesthecookiesinatextfilecookies.txt,andanyonecanhaveaccesstothisfileinadirectlink" www.mysite.com .com.br / cookies.txt "I want to know how to hide this, because the security of my app...
asked by 31.10.2017 / 15:42
1
answer

Run cURL command in an HTML / JS application

I have zero experience in API, JSON, Ajax, cURL, the most I learned in college was basic HTML, CSS, JS and PHP, I already killed myself to search and watch video, but without anyone with experience to help it gets difficult , I'm almost giving u...
asked by 24.10.2017 / 19:32
1
answer

Check changes in a table html

Good evening. I have a table that I get via cURL. It refreshes every 30 seconds, and displays in an html. This table has the status of a character in a game (dead or alive). I wanted to know how to generate an alert for each row of the table...
asked by 06.11.2017 / 03:20
1
answer

CURLOPT_HEADERFUNCTION - Return of cookies

I have this function that returns Cookies of a particular site, I am learning HTTP HEADERS , But I do not know why this warning if I'm returning my cookies ok , What's wrong with my code?    Notice: Object of class stdClass c...
asked by 07.10.2017 / 23:42
1
answer

Copying imdb information

Good morning everyone, well I'm creating an application in PHP and I need to get information from IMDb movies, what is the best way to capture IMDb information? Curl or is there any api that will help me in this?     
asked by 19.09.2017 / 06:14