chrome remote debugging protocol on Windows: curl failed to connect to localhost port 9222: Connection refused

I want to call remote debugging protocol from windows cmd prompt:

C:Program Files (x86)GoogleChromeApplicationchrome.exe --remote-debugging-port=9222

launches a new chrome window.

But I cannot get any json return with:


error message is:

curl failed to connect to localhost port 9222: Connection refused

Why since chrome window is running ?

Chrome not showing compressed (gzip) file size

How can I see in Chrome devtool under Network tab the compressed file size of a file?
I am using gzip to serve my files and when I test my site on numerous gzip test sites online every size is saying that gzip is enabled.

If I test my site with cURL it also says that gzip is enabled. Only if I look in Chrome devtools I see original file size. Does that mean that gzip is not used if Chrome is not reporting it even though every other test site says it’s ok.

Here is an example of when I test site with cURL.

HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx
Date: Mon, 14 May 2018 22:34:46 GMT
Content-Type: application/x-javascript
Content-Length: 59521
Last-Modified: Mon, 14 May 2018 21:57:47 GMT
Vary: Accept-Encoding
Etag: "5afa065b-e881"
Content-Encoding: gzip
Expires: Tue, 14 May 2019 22:34:46 GMT
Cache-Control: max-age=31536000
Pragma: public
Cache-Control: public
Via: 1.1 vegur

and here is the same thing that I get in chrome devtools

enter image description here

enter image description here

Is there a way to format a cURL using Sublime Text, Chrome, or Terminal? How so?

When copying a request cURL from the Network Panel in Chrome, the formatting is pretty bad, and it’s easier to read with actual linebreaks. Are there any simple ways to easily split the lines when copy/pasting? If so, what are they?