Questions tagged as 'curl'

0
answers

Failed to connect to IBM Language Translation through PHP cURL

I have a problem that I can not resolve. Basically I need to translate a string into English for English . This is the code I was able to develop: <?php class CtrlTranslate{ public function translate($text) { $url...
asked by 09.09.2016 / 17:59
0
answers

PHP - Login external sites

I am trying to create a script that connects to an external site (I have the necessary login data in MYSQL database). I would like to know how I can login and fill out a form on a specific page of that site. Example: www.omeusite.com...
asked by 28.06.2016 / 16:41
0
answers

Curl returning error: Curl failed: SSL connect error

My request is as follows: $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); //Wait indefinitately curl_setopt($ch, CURLOPT_SSLV...
asked by 29.06.2016 / 15:10
1
answer

CURL 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) { $fields_string .= $key.'='.$value.'&';...
asked by 21.06.2016 / 22:41
0
answers

Help in cURL, resending form

I'm having a question about the process of submitting the form with CAPTCHA , I'm trying to get data straight from DENATRAN , we understand what I did. Get information: I've made a cUrl script along with PhantomJS to get the information...
asked by 20.06.2016 / 01:42
0
answers

Blank page request API in PHP

I'm trying to make a request for the url: link and the response in case of valid token should be true . I have tried in many ways using Curl and GuzzleHttp , all return me a blank page . I tested token...
asked by 01.05.2016 / 04:28
0
answers

Fill CAPTCHA field via CURL PHP with "Submit in Javascript"

How do I fill a field of a page in cURL which does not send the data via form, but via Javascript? The page in question is this: <script type='text/javascript' src='js/juridico.js'></script> <script type='text/javascript' src...
asked by 19.02.2016 / 18:11
0
answers

Capture page with PHP Curl

Personally I 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, has some way of capturing the source code of the page after it has...
asked by 06.02.2016 / 23:30
0
answers

Crawler for Woocommerce

Good afternoon friends. I am developing a crawler in php that will do scrapping of some urls that I will inform. I'm trying to make it pull values from a dynamic url, but I'm not getting it. Someone could help me. <?php $page_title...
asked by 09.03.2016 / 21:37
1
answer

Curl or WebService Running JavaScript

I'm having a chronic problem, so I need a CURL request to execute code in JavaScript as well. Generally, all posts and references point to the same answer, that curl has no ability to execute JavaScript code, however I have already found Java...
asked by 07.11.2015 / 16:29