Questions tagged as 'curl'

1
answer

curl does not apply

I am creating a script that makes login on a page and returns me the HTML of the page /logado , but it is not working and from what I saw the code is correct Where did I go wrong? <?php if(!empty($_POST["bin"])){ $bin = $_POST...
asked by 10.07.2017 / 01:49
1
answer

problem with integration with affinityassistance (curl + php + xml)

Well I'm with the curl up and running. I'm trying to integrate with the site: link method getplanos. I send the xml via curl and returns that the parameters were not informed Name: GetPlanos (available) Purpose: To return all availabl...
asked by 23.03.2017 / 16:15
1
answer

Sum of xml file values

I need to do a sum of values from an xml file. As I have not worked with Curl extracting data from another file or page, I do not even know how to start. the file layout would be this. 0|0|0|0|3|0|0|46.000| The value to be added would be th...
asked by 21.06.2016 / 13:38
1
answer

Consume REST API in Node.js + cURL

I know there are several packages in Node to consume REST API but I need some packages that use cURL . For some reason (which I did not discover) I can not authenticate with existing ones. I've tried link and link .   ...
asked by 11.11.2015 / 10:27
1
answer

cURL PHP login url post 302

I'm having trouble authenticating to a system and using the    live http header in mozilla I get handle knows the url of the post and with curl it can automate see the live http return image And my code I did so $ch = curl_init(...
asked by 26.06.2015 / 02:13
1
answer

cURL login page in ASP does not authenticate

I've searched everywhere on the web, but so far I can not understand what's going wrong with my code. I'm trying to access my student's portal from my college, using cURL, my interest is to get the grades of each student to be served to other...
asked by 19.04.2015 / 07:28
2
answers

webService php + json

Hello I would like help with integrating with webService via url, for example: $list_result = '{"titulo": '. '[{"id":$id_primary}'. ']}'; $json = json_encode($list_result); //echo $json; //API Url $url = 'https://local-que-devo-enviar...
asked by 07.11.2017 / 16:41
1
answer

How to get multi curl return (curl_multi_add_handle)?

I would like to know how to get the return via the multi curl because by normal curl just use the function curl_exec to get the result of the page but in the multi curl I can not get anything nor with the curl_exec .     
asked by 28.10.2017 / 05:13
1
answer

Send headers in HTTP Request with cURL in PHP

Hello, I made a function to make cURL calls to an API and I am able to make the calls but I am not able to send headers. Function: function curlRequest($endpoint, $verb, $headers, $params = null) { try { //Inicia o cURL...
asked by 20.09.2017 / 15:50
1
answer

Request with Post Method and CURL

I'm trying to retrieve data from an API on the server using CURL, however, it looks like POST data is not going <?php $postfields = array( 'login' => 'login', 'senha' => 'senha'...
asked by 22.09.2017 / 20:52