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
answer559
viewsPick variable from another page
I have this loadChannels.php page with code: <?php session_start(); header("Access-Control-Allow-Origin: *"); /* Captura a página */ if (isset($_GET['page'])) { $page = (int)$_GET['page']; } else…
-
0
votes0
answers26
viewshttprequest with Curl in C returning values
Hello to all who are reading. I am trying to create a code from a simple file md5 hash validation with my web server. Basically I want to send the hash and if it is the same registered in my web…
-
0
votes0
answers75
viewsHelp on CURL Json
I have a Curl code, which pulls json by url, but is giving an error that I can not solve, someone can help me? <?php $c = curl_init(); $login = 'LOGIN'; $key = 'KEY'; $file = $_GET["fileid"];…
-
0
votes1
answer934
viewsSave cookies from one request and use another next Curl
I am trying to log into a website and save cookies to have access to other pages, I found the option 'CURLOPT_COOKIEJAR' that saves cookies in a NETSCAPE file, the doubt is how would be made a…
-
0
votes1
answer321
viewsCurl request does not work depending on JSON size
My problem is that depending on the size of the JSON sent, the request CUrl does not work, ie I send 2 photos on JSON, right, but 4 is already reason for a TimeOut. The problem is not in API for in…
-
0
votes1
answer410
viewsCuritiba WS - problem sending the certificate
I am trying to carry out the communication with the WS of Curitiba (ISS Curitiba) for the sending and query of RPS lots (lots of NFS-e), but the WS always return me the error: "E504 - Error: Service…
-
0
votes1
answer38
viewsPhp Extracting items from a list
How do I stop removing items from a <table> using php.? the situation is as follows: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"url_onde_pego_os_dados"); curl_setopt($ch,…
-
0
votes1
answer282
viewsI cannot login with Curl in PHP. URL does not change
I am trying to log into a system using Curl. But I am not able to log in, I believe the problem is the redirect. I have a website (meusite.com.br) that has a form. this form calls the send page.php…
-
0
votes1
answer260
viewsIs it possible to send data in the body and in the url using the PUT and libcurl method?
I’m trying to send the data both in the URL and in the body using PUT the idea was to make it work exactly like the POST method, but being the PUT method. This is because I see many requests where…
-
0
votes2
answers175
viewsConfirmation of site or host service status
I built this script to run on Linux, but it is not working as expected. I’m using the curl to find the state of the HTTP connection. He returns to me: HTTP/1.1 200 OK Mais alguns conteúdos do site…
-
0
votes1
answer485
viewsPost request using Curl
How do I request, after clicking a button, used Curl? <html> <head> <title>loja</title> <link rel="stylesheet" type="text/css" href="public/css/template.css" />…
-
0
votes0
answers274
viewsPOST requests for specific URL are taking 3 minutes
All my POST type requests for a specific URL are taking about 3 minutes to return the sponse, that is, a few seconds after I submit the form, I look at the API website and there is my data posted,…
-
0
votes0
answers155
viewsUrl of a POST request
Hello, good(a) day/afternoon/night! I am developing a plugin to generate billets in Woocommerce, in case I need to send the data of a form to the bank in order to get the billet and display to the…
-
0
votes0
answers383
viewsCurl passing and receiving parameters?
I have the link $page below: $pagina = 'http://www.google.com'; I’d like to know the difference between: $ch = curl_init($$pagina); and: $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $pagina );…
-
0
votes0
answers226
viewsProblems with Curl in PHP 721
So I graduated, man Notebook and I was reinstall the Apache I installed Apache + PHP 721+ Mysql. Everything works. I went to try a phone call with Curl and gave error: [Thu Apr 18 16:41:34.354241…
-
0
votes1
answer32
views -
0
votes1
answer42
views -
0
votes2
answers597
viewsCurl is not working on my localhost
I have a code in PHP to list a stock in OLX. In production it works perfectly. at Curl location is not working at all. $url = 'https://apps.olx.com.br/autoupload/published'; $ch = curl_init($url);…
-
0
votes1
answer27
viewsSelective return of an array in php with Curl
I have the information below in the variable $return But I would like to display only the values [code] I did $retorno=json_decode($result, true); foreach($retorno as $registro): print_r ('Código: '…
-
0
votes1
answer824
viewsCurl Error #:SSL Certificate problem: Unable to get local Issuer Certificate
Hello, I need to request an API using Curl in php, but the server response is "Curl Error #:SSL Certificate problem: Unable to get local Issuer Certificate". The other certificates, which are being…
-
0
votes1
answer170
viewsPass two variables concatenated into a Json object of a PHP POST Curl
I’m sending this json request in the Curl POST with PHP. Here the json of the POST: "Payment" => [ "Type" => "Vendor", "Amount" => 100, "CreditCard" => [ "CardNumber" => "$card",…
-
0
votes1
answer206
viewsConnection refused when I do Curl to a service
I have a service/API that runs on xampp, xampp is installed on a Windows server. From the moment I started to hear the door 1500 instead of the 80 in the xampp, I started to have some problems.…
-
0
votes0
answers29
viewsHow to save a file that has spaces in its name in Curl?
The easiest way I found was to use this character which is a "Espaço em branco do padrão Braille", but it’s twice the normal space. Not to mention I don’t know if there might be some…
curlasked 5 years, 1 month ago maicom coelho lopes 1 -
0
votes1
answer89
viewsPHP to Service by CURL
I’m trying to send PHP data through CURL to the Protheus service, which receives a string. I’m having trouble referencing the data to the variable. Example in PHP: $response2 =…
-
0
votes1
answer223
viewsError #26 when uploading file via Curl With PHP
Hello, First excuse if something is missing or if the question is not well formatted, my first question. Well, I need to send a CSV file via CURL to an API that performs a registration, but when…
-
0
votes0
answers82
viewsHow to capture website cookies saved in browser?
Hi, guys. How do I capture cookies from a website and pass to Curl? I am using the extension "cookie editor" to see the cookies and passing to a txt file to run on Curl, but I can’t see the page I…
-
0
votes0
answers73
viewsCall Curl inside while
I’m trying to file a requisition cURL for each line returned by a query in a database. The problem is that my program dies right after the first call cURL, and I have no idea why. Searching the…
-
0
votes1
answer357
viewsHow to receive headers from Curl?
I’m making a request via Curl as follows (it is only test, not in production) <?php $post = [ "Primeiro", "Segundo" ]; $headers = [ 'Terceiro', 'Quarto' ]; $ch = curl_init(); curl_setopt($ch,…
-
0
votes0
answers1703
viewsCurl error 6: Could not resolve host
Good afternoon staff I am trying to perform an authentication test using the Guzzlehttp, which in turn uses the Curl under the table, with no mystery: $http = new \GuzzleHttp\Client; $response =…
-
0
votes0
answers139
viewsCURL via command line works, but with php’s Curl library returns timeout
I have an app in Laravel that runs with Docker inside an Azure VM in production. As a development environment, I use the same Docker structure locally, on an Ubuntu. There is a feature that performs…
-
0
votes1
answer128
viewshow to do Curl -X POST -d in PHP
I’m doing an integration with an api that brings real estate In the documentation, it looks like this: curl -X POST -d "client_id=1234&client_secret=abcd&grant_type=client_credentials" \…
-
0
votes1
answer77
viewsHow to send parameter in array using Curl in php
I am integrating an API that imports immovable information using Curl in PHP. I stopped to import the photos, in the documentation he says: QUERY PARAMETERS dimensions Array of strings Items Enum:…
-
0
votes2
answers68
viewsSending email in HTML format via an Ajax JS request to an API that uses Curl in PHP
Good afternoon to all! I am structuring a contact form for a website and am using an API from sendgrid, available via rapidapi (https://rapidprod-sendgrid-v1.p.rapidapi.com/mail/send). With this, we…
-
0
votes1
answer38
viewsHow to use the Clickable guzzle to redirect a file download of a request
I need your help to find a way to be a 'proxy' between the frontend and a third-party software component using Laravel. Third-party software is on my company’s network and generates the files on…
-
0
votes1
answer25
viewsEnvato API Curl response error, malformed token
I’m trying to get data from Themeforest templates using the API of Envato; need data as template name and price from product ID. But the answer via Curl is that there is an error in the formation. I…
-
0
votes1
answer63
viewsHow to pick variable from a file from another site by Curl
Good afternoon, you guys. I have a question, like I’m a beginner and I’m using Curl to get some data from a website. I wonder if I can get data from one page to another page because if I am…
-
0
votes1
answer32
viewsCurl Auth Returning Strange Carcteres
Hello, I am accessing an api that when sending an auth2 with clientId and clientsecret is received the token for validation in other requests; The problem is that when receiving the token I cannot…
-
0
votes1
answer134
viewsHow to capture the Header of a PHP Curl request?
I’m setting up a local Rest API for testing and learning how to authenticate via Headers, so I have 2 files that will interact: 1: Client.php $DadosArray = array(); $DadosArray["item"] = "1234";…
-
0
votes0
answers17
views"Curl" request on my server is error in SSL certificate
I’m performing a Curl request with PHP on my hosting. However, if I leave the parameter "CURLOPT_SSL_VERIFYPEER" true, the request returns the error "Curl error 60: SSL Certificate: Unable to get…
-
-1
votes1
answer4820
viewsRun a cron Cpanel URL
I need to run a URL at 19:00 every day. I tried using Cpanel’s cron job, but the url is not executed. curl -s -o /dev/null http://minhaurl.com.br/index.php/sms/enviodiario What would be wrong?…
-
-1
votes1
answer119
viewsI’m not able to use libcurl C++
Guys, I can’t get my libcurl on! Could someone give me a hand? teach me how to compile this correctly! Because I am following all the steps that come in a doc together with the project itself.…
-
-1
votes1
answer169
viewsAdd Country to Distance Matrix API
I’m using a function to return from the google Matrix api, the distance between two cities. The problem is that when cities have names similar to those of North American cities, the calculation of…
-
-1
votes1
answer429
viewsHow to pick up portions of texo inside a site using Curl
I have this example with "file_get_contents" How it would be done using Curl? <?php $url = 'http://www.exemplo.com/exemplo.php'; $dadosSite = file_get_contents($url); $var1 = explode('Da linha 1…
-
-1
votes1
answer47
viewsSend array with internal array via CURL PHP
The following Array is sent to a API through a POST using CURL: $content = array( 'name' => $_POST['name'], // Recebe String de um <form> 'price' => $price, 'stock' =>$stock, 'link'…
-
-1
votes1
answer20
viewsHow to make a URL that updates every second without updating my page
Well I have a code in php, with an if and I would like if I could get the answer from Curl, only q this answer it updates every second so it is almost impossible if I get the answer like this, there…
-
-1
votes1
answer369
viewsControl return order of Curl
I’m doing a check on proxys putting a list of proxys in the textarea and the code returns to me on screen 1 by 1 below each other whether they work or not. Almost everything is ready, the only…
-
-1
votes2
answers277
viewsPHP Curl Twitter Check if data is correct
I was able to do what I wanted, but how do I check to see if the user data is correct? In the previous question I asked how to get all cookies if really the user and password exists on Twitter, I…
-
-1
votes1
answer188
viewsCurl script works on Windows, but not on Linux
I have a problem with Curl. When I use this code in apache installed on Windows 10, it always works. When I use on Linux, both on Ubuntu Server 16.04 and on Centos 7, in both gives problem, works…
-
-1
votes1
answer251
viewsphp sending via Curl nodejs
Good evening, I’m 2 days trying to send Curl php data to nodejs when I do out the Curl works... but I needed it to go this way.... attempt 1 php: { $this->ch = curl_init();…
-
-1
votes1
answer182
viewsCurl error in Cielo payment
Good afternoon, I’m trying to implement Cielo’s payment method in Woocommerce (plugin https://github.com/greguly/cielo-woocommerce/). When I try to make a purchase in production mode the following…