Send an HTTP request using curl
Send an HTTP request using nc
nc takes URL and port in order to functin.
/$ nc localhost 80
GET / HTTP/1.1
We can send HTTP request using the GET method.
Send an HTTP request using python
import requests
response = requests.get("http://localhost")
print(response.text)
Set the host header in an HTTP request using curl
The host header allows user to access a site out of multiple sites hosted on the same server.
In order to set the host-header, we need to use the H flag.
Set the host header in an HTTP request using nc.
Set the host header in an HTTP request using python
Set the path in an HTTP request using curl
Set the path in an HTTP request using nc
Set the path in an HTTP request using python
URL encode a path in an HTTP request using curl
URL encode a path in an HTTP request using nc
URL encode a path in an HTTP request using python
Specify an argument in an HTTP request using curl
Specify an argument in an HTTP request using nc
Specify an argument in an HTTP request using python
Specify multiple arguments in an HTTP request using curl
Specify multiple arguments in an HTTP request using nc
Specify multiple arguments in an HTTP request using python
Include form data in an HTTP request using curl
Include form data in an HTTP request using nc
Include form data in an HTTP request using python
Include form data with multiple fields in an HTTP request using curl
Include form data with multiple fields in an HTTP request using nc
Include form data with multiple fields in an HTTP request using python
Include json data in an HTTP request using curl
Include json data in an HTTP request using nc
Include json data in an HTTP request using python
Include complex json data in an HTTP request using curl
Include complex json data in an HTTP request using nc
Include complex json data in an HTTP request using python
Follow an HTTP redirect from HTTP response using curl
Follow an HTTP redirect from HTTP response using nc
Follow an HTTP redirect from HTTP response using python
Include a cookie from HTTP response using curl
OR
Include a cookie from HTTP response using nc
Include a cookie from HTTP response using python
Make multiple requests in response to stateful HTTP responses using curl
OR
Make multiple requests in response to stateful HTTP responses using nc
Make multiple requests in response to stateful HTTP responses using python