Sunday 18 August 2019

HTTPie: Download content of url


Execute the command 'http url' to get the content of a web page.

Example

Run the application that we setup in previous post and connect to the url 'http://localhost:8080/', you will receive content and headers associated with this url.

$http http://localhost:8080/
HTTP/1.1 200 
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 11
Content-Type: text/plain;charset=UTF-8
Date: Fri, 02 Aug 2019 09:49:28 GMT
Expires: 0
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block

Hello World



Previous                                                    Next                                                    Home

No comments:

Post a Comment