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
-
-1
votes1
answer132
viewsRemote image received by CURL and reduced in PHP
The code below theoretically would be to reduce the width and height of the images [JPG FORMAT ONLY] received by CURL and store on the server, but the image created is only an image in the 800x600…
-
-1
votes1
answer88
viewsData from a PHP POST request does not arrive as JSON
I have a problem to make a POST request directly from PHP to REST, because the data does not arrive in JSON format. {"status":"ok","result":{…
-
-1
votes2
answers310
viewsCurl request using nodejs returns an empty body
I used the Curl of the post office site to turn into a nodejs request (I used this site to convert Curl into js code-> https://curl.trillworks.com/) var request = require('request'); var headers…
-
-1
votes1
answer39
viewsHow do I do a 1-second while Sleep from a json value? PHP
Eai personal am new with PHP I did a CURL: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:5112/resultado/?id='.$id.''); curl_setopt($ch, CURLOPT_ENCODING, 1); curl_setopt($ch,…
-
-1
votes1
answer150
viewsChange Ip when making a Curl request in php
Hello, all right? I have a function that it receives a search term, goes google and returns a specific point of the page in this search term. Everything working cute, except for the fact that at a…
-
-1
votes1
answer81
viewsReturn of the Curl call in PHP is not in JSON
Can anyone tell me why the data doesn’t return in a structured way? I need to get the data out of the api https://swapi.dev/api/people/ and I would like it to return in json format, but I have tried…
-
-1
votes2
answers53
viewsView php file on the body of an email
I’m using Phpmailer to send emails, I want to encapsulate the content of a php page in the field: $mail->Body, this page that should be included in the body does search in the mail tracking api…
-
-2
votes1
answer140
viewsProblem to use user IP instead of server in CURL
I’m using a CURL function this way, to read the contents of curl with user IP and not server IP: function curl($url) { $curl = curl_init($url) or die("Erro, o CURL não está habilitado.");…
-
-2
votes1
answer2104
viewsCURL using PHP
I have this command on Windows cmd: C:\Users\Jhon\Desktop>curl -k -u username:senha https://analysiscenter.veracode.com/api/3.0/generateflawreport.do -F "app_id_list=000000" -F "scan_type=static"…
-
-2
votes1
answer47
viewsGET STR syntax
answer from the JSON: "tipoLogradouro": "AVENIDA", "logradouro": "DOIS", "numero": "185", PHP to collect the answer $tipolograd= GetStr($data, 'tipoLogradouro":' '",'); $lograd= GetStr($data,…
-
-2
votes2
answers476
viewsDownload API request file into server folder (localhost) with PHP
Dear friends, I have the code below that works as follows, it makes a request via Curl, brings me a file, but this being necessary to click save in the browser, I would like to simply open the…
-
-2
votes2
answers124
viewsError saving JSON via fopen, downloaded via Curl
The command below, accesses an API via Curl, searches for a JSON file, creates a folder inside the /logs folder, and saves the JSON file, so far no problem. However when saving the JSON file it is…
-
-2
votes2
answers120
viewsDo not allow the Curl command to download my entire website. Is it possible?
How could I change my HTML code, so that when do a query with curl don’t bring the entire HTML site to the console? A security flaw that I don’t know how to resolve on my personal website that I’m…
-
-2
votes1
answer28
viewsForeach does not take $value
mine foreach is only returning to $key and the $value displays only Array. What could be wrong with my code? $curl_handle=curl_init(); curl_setopt($curl_handle,…
-
-2
votes0
answers21
viewsError in return Curl PHP
I’m having a problem as to my CURL result that is returning me a non object in the call: $resultado = json_encode(curl_exec($ch)); var_dump($resultado); Returns like this: string(4352) ""\r\n \r\n…
-
-3
votes0
answers21
viewsShell Script: how to log into a php web application using Curl?
Good morning guys, I’m new here... actually, I just made this account for a specific question, because I didn’t find anything relevant to solve my problem. Anyway; I am trying to log into a php web…
-
-5
votes1
answer30
viewsWhat is the right way to do this in Curl PHP?
What is the correct form of this code in Curl php? curl --user {client_id}:{client_secret} -H 'Content-Type: application/x-www-form-urlencoded' -d grant_type=client_credentials…