Questions tagged as 'curl'

1
answer

File upload by CURL php

I have a problem I'm using a PHP under 5.5, so I do not have the curl_file_create function to use, even though I'm not able to send could you help me? public function enviaArquivo($arquivo){ $ch = curl_init('https://site.com.br/upl...
asked by 24.08.2018 / 15:55
0
answers

Encrypted PostData

I'm doing an api in php, and I need to send this post in "CURLOPT_POSTFIELDS", but I have no idea what's below, and I do not even know if it's possible to correct it. "device_id": "S-1-5-21-1104768033-2547358280-1812167977", "uid": "61bd1194-...
asked by 17.08.2018 / 00:42
0
answers

Elasticsearch active and after some time deactivates

Good afternoon when I try to access elasticsearch by curl -XGET link gives me connection refused despite being active elasticsearch service. Italsohappensthataftersometimetheelasticsearchchangesfromactivetofailed.At15:44:13itwasstartedanda...
asked by 01.08.2018 / 16:57
0
answers

Using curl to get url parameter from sendit.cloud

Hello, I would like your help because I'm having the following problem, I'm trying to get the url of the video from the sendit.cloud site, so I'm facing two problems. The first problem is that the links generated by sendit.cloud on the...
asked by 23.07.2018 / 14:44
1
answer

It is possible to use cURL to get a certain ID or CLASS of a page

I'm studying php and I was seeing the cURL function and I wanted to know if it's possible to get the contents of only one ID from another page example: <div id="teste2"> n pegar esse aqui </div> <div id="teste">...
asked by 13.07.2018 / 19:58
1
answer

I am not able to use libcurl C ++

Well, I can not use libcurl! Can someone help me? Teach me how to compile this correctly! I'm following all the steps that come in a doc along with the project itself. >
asked by 08.07.2018 / 17:00
1
answer

fopen and fputs for Amazon S3 by Laravel

In php, is it possible to send an image file, obtained through the return of a request by cURL, directly to an S3 bucket using Laravel's methods? If yes, how?     
asked by 13.07.2018 / 16:52
0
answers

Codeigniter return 500 for cURL

guys, I'm using cURL to send the data to a page and bring me the return, type an API but returns error 500: The action you have requested is not allowed. If I call the page directly through the browser it works, by cURL not My function:...
asked by 26.06.2018 / 15:39
0
answers

Automatic login via cURL with error: Object reference not set to an instance of an object

I'm trying to make an automatic login system for my drugstore, where I access a portal and with my clients' CPF, they have a discount on some medicines. I'm already wrapped up in the login part, via cURL. Here is the code: <?php $cookie=...
asked by 08.07.2018 / 00:58
0
answers

Convert POST request made in Curl to python requests

I have the following command in Curl that makes a POST request. curl -i -s -k -X $'POST' \ -H $'Host: router.jorge.com' -H $'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' -H $'Accept: text/html,appl...
asked by 02.06.2018 / 02:01