Top "Curl" questions

cURL is a library and command-line tool for transferring data using various protocols such as HTTP, FTP and SFTP.

How can I find where I will be redirected using cURL?

I'm trying to make curl follow a redirect but I can't quite get it to work right. I have a …

php redirect curl
How to pass payload via JSON file for curl?

I can successfully create a place via curl executing the following command: $ curl -vX POST https://server/api/v1/places.…

json curl
Using curl POST with variables defined in bash script functions

When I echo I get this, which runs when I enter it into the terminal curl -i \ -H "Accept: application/…

json bash curl javascript-objects
CURL ERROR: Recv failure: Connection reset by peer - PHP Curl

I'm having this strange error, CURL ERROR: Recv failure: Connection reset by peer This is how it happens, if I …

php curl yii
Curl to return http status code along with the response

I use curl to get http headers to find http status code and also return response. I get the http …

shell curl
Is there a way to follow redirects with command line cURL?

I know that in a php script: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); will follow redirects. Is there a way …

redirect curl command-line-interface
Why does cURL return error "(23) Failed writing body"?

It works ok as a single tool: curl "someURL" curl -o - "someURL" but it doesn't work in a pipeline: …

macos bash curl osx-lion pipe
How can I connect to a Tor hidden service using cURL in PHP?

I'm trying to connect to a Tor hidden service using the following PHP code: $url = 'http://jhiwjjlqpyawmpjx.onion/' $ch = …

php curl proxy tor
How to switch from POST to GET in PHP CURL

I have tried switching from a previous Post request to a Get request. Which assumes its a Get but eventually …

php post curl get
How can I set the request header for curl?

How would I pass multiple values in the header for a curl request?

curl