Questions tagged [curl]

cURL is a library and command-line tool for transferring data using various protocols such as HTTP, FTP and SFTP. The cURL project produces two products, libcurl and curl. This tag covers all usages of cURL, regardless of which cURL product is used.

42,211 questions
0votes
0answers
5views

Poetry - RuntimeError: No python executable found in shell environment. Tried: ['python3', 'python', 'py.exe -3', 'py.exe -2']

Goal: Get Poetry working via Git Bash. Windows 10 Poetry 1.1.13 pyproject.toml Issue [email protected] MINGW64 ~/Anaconda3 $ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/...
0votes
0answers
6views

How to Parse Data into a POST request for MRPeasy

TLDR For my API project I require to send a POST request to MRP to update some of the fields. What I am currently struggling with is the ability to parse in the parameters as data, every time I send ...
-2votes
0answers
20views

php API curl "Allowed memory size of XXXX"

On localhost I'm trying to load json data with API. Sometimes it gets error Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in XX\XX\XX on line 57 But ...
0votes
0answers
8views

login in manageIQ through remote or external Site

I am trying to login into manageIQ from external application/Website or curl. I am making a portal where user login on my site and then they click on a link. if user did not exist in manageIQ one api ...
-3votes
1answer
17views

Convert Faceboook Meta cUrl to PHP

How can I convert the following cUrl to PHP. curl -i -X POST \ https://graph.facebook.com/v12.0/FROM_PHONE_NUMBER_ID/messages \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: ...
-2votes
1answer
14views

how to capture the domain name of a php curl request

How about crawling the domain name of a Curl request. I am a code analyst and currently have been given a cryptographic code analysis task that needs to analyse whether the PHP code is requesting a ...
0votes
0answers
14views

How to use Ansible 'get_url' to capture verbose output of curl?

I am doing the following in Ansible: - name: "get curl stderr" shell: curl -v https://www.example.com 2> output.txt so that I can capture the verbose output of the curl command. ...
  • 1,124
0votes
1answer
28views

php curl_exec returns "HTTP/1.1 100 Continue" followed by "HTTP/1.1 404 Not Found"

I am trying to convert the below curl command which gives me JSON response to PHP curl code. curl -X POST --tls-max 1.2 --insecure https://xxxxxxxxx.com/getkey --cert client.crt --key client.key --...
-1votes
1answer
25views

how to use bash output as variable [duplicate]

I am creating a job that would first initiate an API checking what is the next available ip in a subnet with some parameters. Then i want to run "ping" check on the output (that is an IP), ...
-1votes
1answer
22views

PHP Curl array post fields including a file upload

I need to do the following using PHP curl: curl "https://the.url.com/upload" -F file="@path/to/the/file" -F colours[]="red" -F colours[]="yellow" -F ...
-2votes
0answers
19views

File uploading using php curl cmd

I am trying to upload file from local or server to another server with php curl cmd curl -v -F [email protected] -F "[email protected]:\xampp\htdoc url Local machine output * Trying 127.0.0.1:...
0votes
1answer
16views

Curl - Encode file as url query

Curl - Encode file as url query I'm trying to send message to Amazon SQS queue with payload read from file using curl So far I've got working curl to send message to queue but with harcoded value like:...
0votes
1answer
11views

How to use cURL to find the redirect location

I was able to open the link: https://georgetown.app.box.com/s/32o25lslrx69q6n4n12egrd5yudswpl7. I know it was redirected to another URL if I wanted to download it by programming. But, when I run the ...
0votes
0answers
28views

How to install cURL into visual studio code

I've been trying to get curl into vsc since yesterday, so far I've managed to install curl and use commands in command prompt, but I have no idea how to implement it into VSC? The path if needed is C:\...
0votes
0answers
18views

How do you paginate with Okta API call?

Sorry for the stupid question but I saw this thread from 7 years ago but am wondering how to do the same thing: How to get next page from Okta api call with CURL I see the '-i' flag to pass to curl to ...

153050per page