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
answer918
viewsScan all pages, Curl
I need to access a site through the Curl and capture content from his page, but it does not show all content on a single page, it divides them into several pages at the end it shows that menu to…
-
0
votes1
answer137
viewsDoes the Curl request in php resolve a subdomain locally?
I have a server with Ubuntu 14.04 Trusty VPS and would like to know if using the Curl library solves DNS locally for a subdomain. I have 2 domains on the same server and 1 is a subdomain…
-
0
votes1
answer737
viewsConsult Receita Federal website data with PHP
Performing a search, I found some examples fill out forms from third-party websites and capture the answer. Most of these examples use the PHP Curl library. On the website gigasystem, there is a…
-
0
votes1
answer544
viewsHow to update Curl request when calling script
I have a system, which opens an external site inside it, only I have a small obstacle; every time the page is accessed for the first time, the data obtained from the external page are not updated,…
-
0
votes0
answers80
viewsProblem api Rest codeigniter sometimes unanswered
I’m using a Rest api between 2 different applications, posting from one to another an array, but on the server there are times when the other api does not respond. I put to create a log as soon as…
-
0
votes0
answers54
viewsPHP Curl Scroll
Hello, I need to get data from a site that even a FINITE scroll! however, it is divided into parts, I have to give scroll ai load the rest, have I get the full page ? or has another function or…
-
0
votes0
answers488
viewsCapture Page with PHP Curl
People need to capture the source code of a page with Curl, but the jQuery of this page that generates the content and Curl does not return this data generated with jQuery, is there any way to…
-
0
votes0
answers162
views -
0
votes0
answers427
viewsCurl Returning Error: Curl Failed: SSL connect error
My requisicao is the following: $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);…
-
0
votes1
answer196
viewsPHP - Curl returning error "Microsoft Vbscript Runtime error '800a01a8' Object required: 'Session(...)'"
I am developing an application where various automations will be made (all forms submission, relatively simple) on external websites using Curl. I’ve had success in at least five cases, except for…
-
0
votes2
answers1898
viewsRead a Serasa Data String
I need to make in my application a query to the services of Rasa via Serasa Experian. I have already assembled the entire layout and when I make the request directly through the browser, I have the…
-
0
votes0
answers90
viewsCurl PHP + Google Speech
I’m trying to work out a php algorithm to get a particular file. flac and , through google Speech return the text generated through the same. Follow the code below: $filename="good-morning-google";…
-
0
votes1
answer644
viewsGet the Urls from the Google search result page
Hello, I would like some API or any way to get the Urls that Google returns when doing a search. For example, I did a Google search with Curl looking for Walmarts, I would like PHP to return me all…
-
0
votes2
answers389
viewsSimulate APP (Android) data search in PHP/Python
I would like tips and paths on how to simulate the search for data from an APP (Android) in PHP or Python. I found interesting this example https://github.com/victor-torres/sinesp-client, where the…
-
0
votes1
answer834
viewsPHP Curl Upload Images
I’m trying to upload using cURL in PHP on an external page. At first the command line of the external page that captures the photos is exactly this: <!-- BEGIN FIELD IMAGES --> <div…
-
0
votes1
answer629
viewsCurl or Webservice Running Javascript
I have a chronic problem, I need a CURL request to execute codes also in Javascript. Generally speaking, all posts and references point to the same answer, that Curl does not have the ability to…
-
0
votes1
answer638
viewsCheckouturl redirection problem at Cielo Checkout
I’m developing the website of my record label with the Codeigniter framework. In it I will sell physical and digital Cds with the Cart class. I signed up for Cielo this week and I am reading…
-
0
votes2
answers138
viewsDownload multiple Curl pages at the same address without overwriting
I need to download this page several times, it returns a different result each time it is accessed: i="0" while [ $i -lt 10 ]; do curl -O http://httpbin.org/bytes/128 i=$[$i+1] done But each time…
-
0
votes1
answer757
viewsBlock Curl access to my server?
Is it possible to block Curl access to my server ? Example I have a VIP site with a user-generated security key and prevent anyone from logging through the system via Curl ? I tested with captcha…
-
0
votes1
answer80
viewsphp regular expression
I’m trying to get a whole source code from a website. using CURL I used regular expression preg_match('/<html>(.*)<\/html>/i', $resultado, $codigo); echo $codigo = $codigo[1]; but it…
-
0
votes1
answer2181
viewsUnable to find the wrapper "https" - Did you Forget to enable it when you configured PHP?
When launching a script PHP I had a nice surprise : Warning: file_get_contents(): Unable to find the wrapper "https" - Did you Forget to enable it when you configured PHP? Here’s an excerpt from my…
-
0
votes1
answer2336
viewsSending a file via CURL using PHP
How to translate the following CURL command to PHP? curl -F file=@/home/user/picture.jpg https://api.dominio.com/pictures I tried a few ways but the ones I found were all sent with some key (e.g.,…
-
0
votes1
answer126
viewsInstall Curl Python library 3.4.4
Someone has a . zip link to install the "import pycurl" Use Windows and Python 3.4.4
-
0
votes1
answer704
views -
0
votes1
answer442
viewsI can’t save the information in the bank
I wonder if there’s something wrong: if(isset($_POST['notificationType']) && $_POST['notificationType'] == 'transaction'){ //Todo resto do código iremos inserir aqui. $email = 'douglas@...';…
-
0
votes1
answer1349
viewsHow to consume 4shared REST API using PHP?
I tried every way to use this new 4SHARED API, both with Curl and file_get_contents and cannot authenticate! 4shared has not released any class equal twitter and facebook disponibilza and I’m having…
-
0
votes1
answer706
viewsHow to fill in input field and submit form with Curl?
How do I fill in the input and carry out Submit of form of that website https://appear.in/ using Curl? I want to use the video chat system of this site in my project, it is very simple to create a…
-
0
votes2
answers12186
viewsHow to send a json via post with PHP?
Good people, need to post a json to an API (URL: https://www.bitcointoyou.com/Payments/) and read what to return? How can I do? I thought of something with Curl. Grateful…
-
0
votes0
answers456
viewsFill CAPTCHA field via CURL PHP with "Submit in Javascript"
How do I fill a field of a page in Curl and this does not send the data via form, but via Javascript? The page in question is this: <script type='text/javascript'…
-
0
votes1
answer1249
viewsGo to page and login with Curl
I’m trying to log in with Curl on web pages using the simplest code possible but it never works even though the code being apparently correct follows the code: $ch = curl_init(); curl_setopt($ch,…
-
0
votes0
answers87
viewsCrawler for Woocommerce
Friends good afternoon. I’m developing a php Crawler that will make Scrapping some urls that I will inform. I’m trying to get him to pull the values of a dynamic url, but I’m not getting it. Could…
-
0
votes0
answers312
viewsEmpty PHP API request page
I’m trying to make a request for the url: http://api.olhovivo.sptrans.com.br/v0/Login/Autenticar?token=XXXX and the response if token valid should be true. I’ve tried several ways using Curl and…
-
0
votes1
answer77
viewsTransform Curl http://IP:PORT/sendLocalEvent? eventName=_event into Javafx
I would like to make an app in javafx , when you press a button sends a command like: curl http://IP:PORTA/sendLocalEvent?eventName=_evento to a server on the same network to start the _event event.…
-
0
votes0
answers1031
viewsHow to create a web-proxy with Curl + PHP
I need to create an application that can compare some information contained on external sites and I need to do this in PHP, but I am barred by the difference of domains. In proxys in I can access…
-
0
votes1
answer295
viewsProblem with ajax and Curl to receive the mysql value and return to html
I’m having a problem using html, ajax, Curl and mysql. the function is simple an html page where it will receive a name and will send by ajax to the Curl that will access the php that connects to…
-
0
votes1
answer561
viewsCopying information from imdb
Good morning to everyone , well I’m creating an application in PHP and I need to get information from Imdb movies ,What better way to capture information from Imdb? Curl or there’s some api I can…
-
0
votes0
answers71
viewsHelp in Curl, resending the form
I am having a question as to the process of sending the form with CAPTCHA, I’m trying to get data straight from DENATRAN, let’s understand what I did. Get the information: I made a Curl script along…
-
0
votes1
answer96
viewsCURL returns code 303
I have the following code: $fields = array('usuario'=>urlencode($jm->Login),'senha'=>$jm->Senha);//url-ify the data for the POST $fields_string = ''; foreach($fields as $key=>$value)…
-
0
votes1
answer173
viewsHow to hide cookies.txt from the Curl
I have a php code that makes a request with Curl on a page, but it saves cookies in a cookies.txt text file, and anyone can have access to that file in a direct link "www.meusite.com.br/cookies.txt"…
-
0
votes0
answers27
viewsFailure to connect to IBM Language Translation via PHP Curl
I have a problem that I can’t solve. Basically I need to translate a string into Português for English. This is the code I was able to develop: <?php class CtrlTranslate{ public function…
-
0
votes0
answers125
viewsPull information from another page
Through a certain url I receive the following code <script> window["ytInitialData"] = {"responseContext":{"serviceTrackingParams": [{"service":"GFEEDBACK","params":…
-
0
votes0
answers195
viewsHealthcheck in PHP
I built a PHP code that requires a web page, checks the returned HTTP code and lets you search for a string present in the html source. I used CURL for this. The code is basically this: class…
-
0
votes1
answer174
viewsCurl and Laravel, always redirect
I’m trying to make a simple Curl to an Laravel app (5.2) running on my machine: curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"…
-
0
votes1
answer127
viewsHow to monitor a URL when there are changes?
I have a system, which needs to compare various values, between various sites. These values are read from an XML provided by the site in question. The problem is that the default reading of the URL…
-
0
votes1
answer66
viewshow to mount the json of that call
I’m having a problem I don’t know how to build the json of this call in php to send by Curl someone could help me? "auto_recurring": { "frequency": 1, "frequency_type": "months",…
-
0
votes1
answer282
viewsWhat does -u of a Curl mean
I wonder what the -u in the request on curl. know what -h means header and the -d let me know if I’ll send POST GET ou PUT.…
-
0
votes0
answers58
viewsWhy does this curl_init php result enter false?
I have the following script: ... $fields = http_build_query($data); $post = curl_init(); $url = $url . '?' . $fields; curl_setopt($post, CURLOPT_URL, $url); curl_setopt($post, CURLOPT_POST, 1);…
-
0
votes2
answers54
viewsurl with parameters returns wrong value
I have the following appointment to api of Google Maps http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Muriae&destinations=Rio de…
-
0
votes1
answer171
viewsfopen and fputs for Amazon S3 by Laravel
In php, is it possible to send an image file, obtained by returning a request by Curl, directly to a S3 Bucket using Laravel methods? If yes, how to do?
-
0
votes1
answer200
viewsIt is possible to use Curl to pick up a certain ID or CLASS from a page
I am studying php and I was looking at the Curl function and wanted to know if it is possible to take the content only of a certain ID of another page example: <div id="teste2"> n pegar esse…