Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 1.67 KB

README.md

File metadata and controls

84 lines (57 loc) · 1.67 KB

Tema 2: Protocolo HTTP

Herramientas

  • Curl
  • Httpie
  • Postman
  • Navegadores

Curl basics

curl -o myfile.css https://cdn.keycdn.com/css/animate.min.css
curl -O https://cdn.keycdn.com/css/animate.min.css

curl -H "X-Header: value" https://www.keycdn.com

curl -I https://www.youtube.com/ -v
curl -I --http2 https://www.tmall.com/

curl -I --request GET https://www.keycdn.com/
curl -I --request POST https://www.keycdn.com/
curl -I --request DELETE https://www.keycdn.com/
curl -I --request PUT https://www.keycdn.com/

curl -X POST https://yourwebsite.com/login/ \
    -d 'username=yourusername&password=yourpassword'

curl --data name=curl http://url1.example.com http://url2.example.com

Servicios

SOAP

curl --request GET http://www.chemspider.com/MassSpecAPI.asmx/GetDatabases
curl -I --request GET http://www.chemspider.com/MassSpecAPI.asmx/GetDatabases

JSON

curl --request GET https://api.run.pivotal.io/v2/info
curl -I --request GET https://api.run.pivotal.io/v2/info

http/2

curl -I --request GET https://www.tmall.com/

http/3

curl https://www.google.com/
curl -I  https://www.google.com/

curl https://www.youtube.com/
curl -I https://www.youtube.com/

Referencias