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
answer979
viewsSending POST with Python via Curl
I want to turn the form (which is working) into a URL to run in the backend <form action="/users/login?ssrc=head&returnurl=https%3a%2f%2fpt.stackoverflow.com%2f" method="post"> <input…
-
1
votes1
answer285
views -
1
votes0
answers198
viewsCommand 'Curl localhost' returning 'Curl: (52) Empty reply from server'
Good afternoon! The following is a description of the scenario: I’m using the corporate laptop, when I run the same command without being logged in to the VPN it returns the container page I created…
-
1
votes1
answer1118
viewsCurl extension does not work?
I want to open the login page of a site that came almost all ready for me, but this error happens: Facebook needs the CURL PHP Extension. Line 19: C: Program Files (x86) Easyphp-Devserver-16.1…
-
1
votes1
answer842
viewsHow to send this XML to webservice via PHP
Good morning, I have the following problem: I need to remove from the city website which companies issued note this month. I did the processes of installing the certificate of the city, and I need…
-
1
votes0
answers834
viewsLogin Webservice PHP + SOAP + CURL + XML + certificate
Good afternoon, I have the following code trying to access the ISS webservice of the city of Curitiba: <?php $xml_data = '<?xml version="1.0" encoding="utf-8"?> <soap:Envelope…
-
1
votes0
answers727
viewsSearching for data in the Tmdb API
I have a website about movies made in PHP (codeigniter), I intend to use the site API themoviedb.org to search and show the information to users. And the first time I use an API and would like to…
-
1
votes1
answer258
viewsCurl returning indefinite offset
Based in this question, I was interested because some time ago I was making a follower generator pro Twitter (exchange of followers) and I got... but I thought it was cool the response of Inkeliz,…
-
1
votes1
answer59
views -
1
votes1
answer52
viewsif on the screen before the query is performed
I am trying to create a consultant with PHP who makes a request in a form with an email from the client and returns me if he is registered in the service. The problem is that when I start my page…
-
1
votes1
answer401
viewsCurl does not request
I’m creating a script what makes login on a page and returns me the Htmlda page /logado, but it’s not working and from what I saw the code is correct Where I went wrong? <?php…
-
1
votes1
answer1189
viewsReturn Curl with JSON
Good morning, I’m trying to return this code in JSON, I just want some specific fields ex: Operator, type, portability and status. <?php //header('Content-type: application/json'); $post = ['tel'…
-
1
votes1
answer2267
viewsHow do I make get and post requests through Curl?
I have this class with the following methods : public function __construct($url,$followlocation = true,$timeOut = 30,$maxRedirecs = 4,$binaryTransfer = false,$includeHeader = false,$noBody = false)…
-
1
votes1
answer136
viewsTwitter API with CURL
OBS: THE COMPLETE CODE IS HERE, but I made this adjustment to receive the cookies I am trying to read the cookie files to make the necessary requests to stop get the result I hope, see my code:…
-
1
votes0
answers556
viewserror LNK2019: undefined external symbol while trying to use libcurl
Hello, I’m trying to compile a static library of libcurl, but without success. I download the libcurl source code version 7.55.1 available at https://curl.haxx.se/download.html. After the download…
-
1
votes1
answer1950
viewsSend headers in HTTP Request with Curl in PHP
Hello, I made a function to make Curl calls to an API and I’m able to make the calls but I’m not able to send headers. Function: function curlRequest($endpoint, $verb, $headers, $params = null) {…
-
1
votes1
answer920
viewsCookies with Curl help
I need to access a certain URL and load the file 'cookies.txt' the problem is the following I access the URL normally plus Cookies.txt does not load... I think the problem is here in this part…
-
1
votes1
answer180
viewsRuns php script in cmd with Curl
I am testing an api, while trying to use some features presented the following message: Something Went Wrong: Network: CURL error 60: SSL Certificate problem: Unable to get local Issuer Certificate…
-
1
votes0
answers39
viewsSending 1 json at a time to API
Hello. I have a question that I am not able to resolve. I’m doing a PHP integration of Opencart with the Suasvendas API, but the API only accepts 1 json at a time to register, IE, I need to send…
-
1
votes1
answer99
viewsSlowness in restricted file
I have a file in php.php process that receives information in looping via jquery and makes a request to another page with Curl, this file does something around 4 to 5 thousand requests one by one,…
-
1
votes2
answers850
viewswebservice php+json
Hello! I would like help to integrate with webservice via url, for example: $list_result = '{"titulo": '. '[{"id":$id_primary}'. ']}'; $json = json_encode($list_result); //echo $json; //API Url $url…
-
1
votes0
answers124
viewsproblem with cookie in Curl
I am developing a login with Curl and I am making two requests, the first one makes the post to the action page of the form and generates a txt file with the cookie, soon after I make a request…
-
1
votes0
answers579
viewsCURL PHP Login automatico
I am upgrading an application I made some time ago, I try to log in via CURL, but I can’t make the application work with the cookie collected during the login via CURL. I can save the cookie but not…
-
1
votes1
answer475
viewsAccent error when using Curl
Good afternoon, all right? I’m trying to pull some information via Url of the post office site, however it is returning me but with accentuation error, would have some way to change the header that…
-
1
votes1
answer593
viewsCURL PHP request for a WEB Service
Good morning to you all. Guys, I’m having a problem communicating with the web service of a third-party company here where I work. Explaining above, I need to send a report of transactions with…
-
1
votes2
answers200
viewsHow to rename files into a list. CSV in your output with PHP and CURL?
How are you all? This is my first post because I am a beginner with PHP and CURL and I needed to create a script to download several images in repositories through a file .csv. It reads the url…
-
1
votes0
answers205
viewsHelp with Curl PHP
I have a requisition cURL and generally the WebService that conecto takes 8 seconds to return a JSON 600,000 lines. The problem is when I open a tab to make this request ex:…
-
1
votes1
answer491
viewsHow to delete 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 =…
-
1
votes0
answers376
viewsSandbox Does Not Send Notifications
The secure pay sandbox is not sending notifications to my page, the url is configured in the Integration Profiles -> seller tab, and also the notifitionURL in the transaction request. Successful…
-
1
votes0
answers81
viewsCurl inside another Url to save images
I have an api in Slim Framework, within the "Service A" of the api I am using a Curl to call the "Service B" of the api, this "Service B" downloads images by their url using another Curl, it runs…
-
1
votes1
answer599
viewsCurl failed to send array
Well I have a small problem sending the data via Curl, when sending the data to the API returns me that there is one of the fields that is not an array: {"errors":["items deveria ser um Array"]}…
-
1
votes1
answer335
viewsRedirect with Curl
I’m trying to log in to a Curl account but it doesn’t go to the final page. Site map: form page. page that receives the post (Curl is stopped here). 200 OK restricted page(Curl does not arrive…
-
1
votes0
answers54
viewsSearch in google maps api returns different values with Curl or guzzle
I do the search in the google maps api with Curl or guzzle using php and returns me a different value than using the Postman or browser ex: $client = new Client(); $res = $client->request('GET',…
-
1
votes1
answer559
viewsPicpay integration: Problem
I’m having trouble with the Gateway Picpay to make a integration. I’m following the manual informed by them on link down below: https://ecommerce.picpay.com/doc/ Good I’m doing so: <?php $urlLoja…
-
1
votes0
answers114
viewsIgnore some fields with regex
In PHP I’m using preg_match_all to get some data from this form: <form id="login_form" action="/login/device-based/regular/login/?login_attempt=1&lwv=100" method="post" onsubmit="">…
-
1
votes2
answers274
viewsHelp Curl+ Sleep
There is the possibility to make a script I have in CURL wait 50 seconds to run? I tried to stop him over Sleep for the whole run, I need to pause only the Curl in question function writeMessage() {…
-
1
votes1
answer273
viewsInvalid parameter type when using CURL with PHP
Good staff make a request in the pay.me API for me to recover some credit card data. When I use directly by the terminal with this code, I receive JSON correctly with all data requested: curl -X GET…
-
1
votes1
answer820
viewsI am unable to send a parameter to a GET method of an API using the PHP Curl
Hello, I am trying to use Curl to consume an API where there is a method that receives a string as parameter. This method in the API is configured as GET, so it will receive this parameter validate…
-
1
votes0
answers84
viewsRequests does not download files > that 4MB
I’m using requests in python, and I can’t download files larger than 4mb (maybe a little smaller too). I am downloading some PDF, and I can download small files normally, but when I use a slightly…
-
1
votes0
answers38
viewsCurl Json returning strange characters, unable to save to database
I would like some help and I apologize if there is already an answer to this question here. Thus: If I execute the command below via SSH:: curl -X POST \ https://pos-api.XXXXXXX.com.br/oauth/token \…
-
1
votes0
answers40
viewsError consuming api with Curl php -> 'Failed to connect to demo.d4sign.com.br port 443: Timed out'
When I consume an api with Curl php the following error appears: Failed to connect to demo.d4sign.com.br port 443: Timed out. Curl’s code: <?php $tknAPI; $cryptKey; $curl = curl_init();…
-
0
votes2
answers114
viewsProblem returning the size of a file with PHP and Curl
I am trying to return the size of a file with php and curl from an external host but when running Curl download_content_length comes as -1, could someone help me?…
-
0
votes3
answers1863
viewsReturn of content by Curl
I’m developing an automatic billet generator, using a tool provided by Banrisul Bank. To generate this automatic ticket I need to send a request through the following URL:…
-
0
votes1
answer1593
viewsRecords are duplicating when entering in the database
I’m doing an API and I’m going through a problem. When executing the script that calls the page via Curl, it does the insertion of a register in the database, but when it comes to registering only…
-
0
votes0
answers86
viewsParse.com: Filter lines that have a term in a column
I want the API of Parse.com return only the lines that have a certain word, simulating a query in the table. Table example: The comfort I tried curl -X GET \ -H "X-Parse-Application-Id:…
-
0
votes1
answer529
viewsconnect to multiple sites with Curl
If there was a list of 10 sites, or more, using Curl to connect and puck content from each site, which would be the most effective way, which would give less time between one connection and…
-
0
votes1
answer1364
viewsHow to use the Curl library for c++ correctly?
I’m having trouble copying a simple test using the Curl library to C++ because it always returns this error: C:\Users\Raphael\Desktop\HTTP Request\collect2.exe [Error] ld returned 1 exit status…
-
0
votes1
answer1774
viewsHow to make sure the Curl post has arrived on the other server?
How can I be sure that one post reached your destination? And how can I build the code so that it has no problem with servers when sending the post? php. $id = "10"; $nome = "Nome"; $fone = "(99)…
-
0
votes1
answer56
viewsWhat makes CURLOPT_DNS_CACHE_TIMEOUT
I wonder what it does: curl_setopt($ch,CURLOPT_DNS_CACHE_TIMEOUT,120); The standard is 120 in lib cURL. The following explanation, I found it half vacant for me: The number of Seconds to Keep DNS…
-
0
votes0
answers223
viewsGet data from that server using Curl
My PHP Curl does not wait for the server to render the data from within the iframe that interests me and comes back with the page but without the data, because the ajax request takes 6 to 7 seconds…