# CURL

Client URL download pages

Client URL basic tutorial

Client URL Intermediate Guide

Client URL Documentation page

Here are a few sample commands.

curl http://example.com
curl http://example.com:3000
curl username:password@http://example.com
curl --head http://example.com
curl http://example.com?name1=value1&name2=value2
curl --data-urlencode "name1=value1&name2=value2" http://example.com
curl -X PUT http://example.com
curl --header "Content-Type: application/json" http://www.example.com
1
2
3
4
5
6
7
8

They are, in order:

  1. Basic GET Request for a domain.
  2. Basic GET Request for a domain with a specific port.
  3. Basic GET Request that requires a username and password.
  4. Request only the headers be returned.
  5. GET Request with querystring data being sent.
  6. POST Request with data being sent. --data works too but it will not encode the information being sent.
  7. PUT Request. Use this approach when you need a method other than GET or POST.
  8. Basic GET Request with a header being set.

Back to Week main page

Last Updated: 11/1/2020, 2:32:17 PM