Most voted "curl" questions
Curl is a command line tool for transferring data with URL syntax, supports DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. Curl supports SSL certificates, HTTP POST, HTTP PUT, FTP upload, HTTP based upload form, proxies, cookies, user authentication + password (basic, Digest, NTLM, Negotiate Kerberos ...)
Learn more…317 questions
Sort by count of
-
0
votes1
answer1046
viewsHttprequest php error
I cannot use the script because of the Httprequest class I already downloaded several classes and always error: (https://dev.infobip.com/docs/fully-featured-textual-message) $request = new…
-
0
votes1
answer259
viewsFile submission by CURL php
I’m having a problem using a PHP lower than 5.5, I don’t have the function curl_file_create for me to use, even though I’m not able to send could help me ? public function enviaArquivo($arquivo){…
-
0
votes2
answers87
viewsHow to convert data in "September 18, 2018" format in PHP?
I used a cURL, to make a api, which picked a specific date. The problem is that the content returned is in English, for example: September 18, 2018. How could I format this for "en"? $ch =…
-
0
votes1
answer2013
viewsCurl - Mega sena result by contest number
script by Daniel Omine modified by me. Original: /a/116727/4793 $c = curl_init(); $cookie_file = __DIR__.DIRECTORY_SEPARATOR.'megasena.txt'; curl_setopt_array($c, array( CURLOPT_URL =>…
-
0
votes1
answer287
viewsHandle Response Curl with PHP
I am integrating an email service with Curl and PHP and would like to pick up the answer that comes in this format: { "id": 8 } How do I get the field number ID with PHP?…
-
0
votes0
answers40
viewsSending a GET request
I am trying to send a GET request to another computer (Win Server R2 2008), from an EC2 AWS (Linux) instance via Curl by command $curl -X GET --header "Authorization: bearer <token>"…
-
0
votes0
answers592
viewsPick up content from a captcha or fill out external website form
Good morning, stackoverflow people. I’m going through a problem that I don’t see the light for. I have the following situation: I’m going through a portal, and this portal, I needed to send…
-
0
votes2
answers50
viewsCheck if the code exists on another site (remote Extract)
Good afternoon, you guys! I need to check some existing code on other sites.. type a widget the person will copy my code and put on her website, so I need to check if this code exists on her site…
-
0
votes0
answers62
viewsCurl does not work with Artisan serve?
Currently my friend is having the same problems I had when trying to use Curl to consume the API, serving the application with php Artisan serves. Is there a limitation that does not allow the use…
-
0
votes0
answers83
viewsCurl with jquery
I am trying to make a request for a page just like I do when I use Curl in php but I want to via jquery but it ta q n I have permission, I wanted to know how to fix it. my code until the moment:…
-
0
votes1
answer1334
viewsWhen I run Curl to localhost:8080 it cannot communicate
When I run Curl to localhost:8080 it cannot communicate $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data);…
-
0
votes0
answers323
viewsIntegration with CIELO
I have a question about how to treat --data-binary, the header I know I can handle it that way: $data = [ 'USER' => $this->username, 'PWD' => $this->password, 'SIGNATURE' =>…
-
0
votes2
answers2535
viewsRequest in the Cielo API in PHP using Curl
I’m trying to make a REQUEST the way below, I’m not getting: public function subscribe(){ $json_url = 'https://apisandbox.cieloecommerce.cielo.com.br/1/sales/'; $json_string = json_encode(array(…
-
0
votes2
answers142
viewsIs there any way to make the "Curl" program to pause print the information on the screen?
For example, when I call the help menu in the Windows CMD terminal, "Curl --help", comes a rain of information on the screen, getting pretty bad to track reading.
-
0
votes1
answer2362
viewsRequest Curl Post with PHP
How do I request in PHP? curl -X POST "http://api.urlapi.com.br" -H "accept: application/json" -H "Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d "{…
-
0
votes1
answer173
views -
0
votes1
answer623
viewsUndefined Function Error: Call to Undefined Function curl_init()
I am using Laravel 5.8 on a Debian Linux System with php 7.4 and implementing a function in which I need to perform a Curl: $curl = curl_init(); The code already points error when defining only the…
-
0
votes0
answers91
viewsError with Curlfile
Hello, everybody. I have the following code: <form action="" method="POST" enctype="multipart/form-data"> <input type="file" name="image"> <input type="submit" value="POST">…
-
0
votes1
answer363
viewsLog in and see if page is online with Curl
I wish to log in to different pages with Curl and make sure everything’s okay. Example: login done successfully returns me a text the "login ok" screen if it didn’t work takes some element of the…
-
0
votes1
answer543
viewsShow data from json
I need to recover the POINTS and RODADA_ATUAL data The json link is --> https://api.cartolafc.globo.com/time/slug/semtitulos That’s the name of the team I want to pull the dice on: semtitulos…
-
0
votes1
answer137
viewsHow to update a different table with data from another table in PDO
I have a pay-as-you-go table, and in it I have an indemnification code for every transaction, when receiving the update data, I want to take the data and enter in update in another table of the…
-
0
votes1
answer1564
viewsHow to pass a parameter via curl_exec to another url with PHP?
I have a PHP that after performing an operation it calls an external URL and returns the value of this external URL, using curl_exec. However, I need to pass a parameter to this new url, preferably…
-
0
votes1
answer419
viewsCurl returning null value in JSON with PHP
Well I’m studying cURL, because I want to make an application with Twitter using login form and password... yesterday I did this question and was very well answered, based on this I am studying…
-
0
votes1
answer9369
viewsHTTP/1.1 302 Found Is this normal or in trouble?
I’m trying the following return on my code PHP, that even with these topics helped me a lot: First, According to C: wamp64 www test index.php:61:string 'HTTP/1.1 302 Found cache-control: no-cache,…
-
0
votes1
answer227
viewsGet information from Twitter without using the Curl API
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 =>…
-
0
votes1
answer1550
viewsError 405 Method Not Allowed
I am trying to log in and return on the screen the panel of a site pore me and returned an error 405 Method Not Allowed how can I fix this ? <?php $email = ' '; $senha = ' '; $ch = curl_init();…
-
0
votes0
answers495
viewsCurl does not return HTML
I am creating a custom management panel, but I’m having difficulties, because the HTML of my request after the login does not come to me on the screen, in place of it is displayed again the screen…
-
0
votes1
answer26
viewsResults of disordered requisitions
I have 1 textarea with several lines, to each line of this textarea I have data to make a post request in a single url, it checks each line and sends me the result on the screen via jquery, the…
-
0
votes2
answers453
viewsWays to use Curl with PHP?
I’m studying cURL to continue in my applying, I reviewed my code and monitored the network from Twitter and got the following HTTP Headers: curl "https://twitter.com/" -H "accept-encoding: gzip,…
-
0
votes2
answers84
viewsError saving Facebook profile image via PHP SDK
Good afternoon! I am using the Facebook SDK to login to my site, I can return the data, including the link of the profile photo, but I can’t save the image, the following error occurs: PHP Error was…
-
0
votes0
answers94
viewsCurl error does not follow request
I am creating a field of donations from my website remotely interconnected with another but am having problems in redirecting, post dates to the page:…
-
0
votes1
answer671
views -
0
votes0
answers332
viewsError returning page with Curl + PHP
I’m using the cUrl + PHP to open an external site, but when I try to do this it even loads normal but does not show the content I am in need of. No console of Chrome this error appears below and I…
-
0
votes0
answers194
viewsTurn CURL into class
I would like to transform my code curl which is structural and puts it into a classe, but I’m out of logic, I DON’T WANT ANYTHING READY, just want examples, see my class. <?php $cookie = [];…
-
0
votes1
answer1201
viewsHow to access the contents of a Curl request with php?
I’m developing a php bot that takes the posts from a facebook page feed using Curl via GET request. I want to extract certain information from the page to then put in content and display on a good…
-
0
votes0
answers170
viewsPHP Do a POST in Javascript Page
A Page PHP, need to pass via POST some parameters for an external page, until ai OK, but this external page has some commands Javascript. When I send via cURL or FileGetContent, page loads, however…
-
0
votes1
answer438
viewsCURLOPT_HEADERFUNCTION - Return of cookies
I have this function that returns Cookies from a particular site, I’m learning HTTP HEADERS, But I don’t know why this warning if I’m returning my cookies all okay, What’s wrong with my code?…
-
0
votes1
answer5430
viewsRun 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’ve killed myself searching and watching video, but with no one with experience to…
-
0
votes1
answer85
viewsCheck for changes in an html table
Good evening. I have a table that I pick up via Curl. It updates every 30 seconds, and displays in an html. This table has the status of a character in a game (live or dead). I wanted to know how to…
-
0
votes1
answer77
views -
0
votes1
answer214
viewsWarning: libssl.so. 1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/.. /.. /.. /x86_64-linux-gnu/libcurl.so, may Conflict with libssl.so. 1.1
I’m trying to copy a program that needs some libraries LIBS = -g -lmysqlcppconn -lpthread -lcurl -lboost_serialization -lreadline -lz -luWS -lssl The problem is that -lcurl and some programs need to…
-
0
votes2
answers825
viewsError in Restful API authentication with Curl PHP
I’m writing a web platform that uses Sptrans RESTFUL API - Living Eye. Authenticate my session with the code: <?php $url = 'http://api.olhovivo.sptrans.com.br/v2.1/Login/Autenticar?token='.token;…
-
0
votes1
answer600
viewsReturn every page via Curl
I need to return a page that is on text/html, but is coded with zlib, yes I tried to decode but no chance, since the function zlib_decode, is not documented so I did searches but all unsuccessful,…
-
0
votes2
answers603
viewsGet external links with PHP Curl
I have this code that returns me to the Google page. <?php $request = curl_init(); curl_setopt_array($request, [ CURLOPT_URL => 'https://www.google.com', CURLOPT_RETURNTRANSFER => true,…
-
0
votes1
answer169
viewsDisplaying wordpress posts with Curl
has some sites where the wordpress installation is in a subfolder called news and need to display a list of posts on the index, searching the internet saw that wordpress generated a JSON of the…
-
0
votes1
answer214
viewsCurl PHP Google Custom Search
I have this script to do a google search using the Google Custom Search. My problem is that when you request the form returns blank, what would be the problem? <?php define('GOOGLE_API_KEY',…
-
0
votes0
answers125
viewsIframe shows system on localhost - PHP
Good morning I’ll try to explain my situation and see if there’s a solution. I have a server that runs a java web application that I want to run only on localhost. Yet, on this server, I have a PHP…
-
0
votes2
answers112
viewsCode repetition
I’m having trouble 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));…
-
0
votes0
answers58
viewsCurl inside is time consuming and troubled
I need to test all user accounts of a db on text area am utilizando the script function informacoes(){ $linhas = explode("\n", $_POST['conta']); $count = count($linhas) -1; for($i=0 ; $i<=…
-
0
votes1
answer374
viewsVIACEP did not find the cep 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 [and neighborhood] to find the zip code does not work because in JSON, the zip code variable…