Linked Questions

0 votes
0 answers
38 views

cURL when fetches a specific site, sends random characters (encrypted?) [duplicate]

A very novice question, I'm sure, but I've been at it for days and found no answer. I recently installed cURL on Windows, along with the CA Certificates and everything. And it works beautifully. ...
Ekanshdeep Gupta's user avatar
92 votes
22 answers
81k views

How to DEFLATE with a command line tool to extract a git object?

I'm looking for a command line wrapper for the DEFLATE algorithm. I have a file (git blob) that is compressed using DEFLATE, and I want to uncompress it. The gzip command does not seem to have an ...
Felix Geisendörfer's user avatar
92 votes
2 answers
92k views

Is there any way to get curl to decompress a response without sending the Accept headers in the request?

Is there any way to get curl to decompress a response without sending the Accept-encoding headers in the request? I'm trying to debug an issue where the order of the Accept-encoding headers may be ...
Jun-Dai Bates-Kobashigawa's user avatar
10 votes
5 answers
17k views

curl command output has wrong encoding

when i execute curl "http://weather.yahooapis.com/forecastrss?w=1225955&u=c" it returns me response with incorrect encoding: khan@khan-P55A-UD3P:~$ curl "http://weather.yahooapis.com/...
Shrouk Khan's user avatar
  • 1,460
10 votes
2 answers
3k views

cURL response not readable

I have a problem with my cURL response, when I try to invoke the method of WSDL, I receive this weird text from my browser, �d�ْ�<�_��[�7�4eS�@���8 �]��Q��A���>�t�,����]�1��%Y���4!l�^ZG��,8��v�...
PHP's user avatar
  • 311
5 votes
2 answers
4k views

Curl is uncompressing a compressed file when I didn't ask it to

This is the opposite of the issue that all my searches kept coming up with answers to, where people wanted plain text, but got compressed. I'm writing a bash script that uses curl to fetch the ...
dd-b's user avatar
  • 113
0 votes
2 answers
3k views

curl result is giving special characters

I am sending the curl syntax like below format to get the authorization code value D:\>curl -k "https://login.mailchimp.com/oauth2/authorize-post" -H "Host: login.mailchimp.com" -H "User-Agent: ...
user1485267's user avatar
  • 1,335
0 votes
1 answer
2k views

S3 fails to unzip uploaded file

I'm following this example // Load the stream var fs = require('fs'), zlib = require('zlib'); var body = fs.createReadStream('bigfile').pipe(zlib.createGzip()); // Upload the stream var s3obj = new ...
Yevgeny Simkin's user avatar
-1 votes
1 answer
1k views

PHP cURL returns encrypted html page

I'm trying to get simple html code, from cURL GET-request on PHP. Default get-request on url, like http://example.com/ (not exacly this domain), returns html code I need, but get-request on page of ...
Binary Bear's user avatar
0 votes
1 answer
195 views

Translating Python HTTP request to curl

I have the code below in Python which is making a POST request for an OAuth2 token. It uses basic authentication. The code works fine, but I would like to "translate it" to curl. The code: #...
lbrunolx's user avatar
0 votes
0 answers
131 views

zlib compression seems to decompress via gunzip but not curl

I've written a http server that only sends back compressed http responses: https://github.com/ericcurtin/asio/commit/1d37a1d225d1e812a747b595c02f9770ebd75dd0 So if you you use curl to request the ...
ericcurtin's user avatar
  • 1,649
0 votes
0 answers
45 views

Curl cannot get the redirected contents

I try to use curl to get the contents of a redirected URL, as below: <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, &...
alancc's user avatar
  • 581