πŸ’‘
cheatsheets
  • πŸ‘‹Introduction
  • πŸ‹Docker
  • πŸ’ͺBrute Force
    • Hydra
  • πŸ—οΈCryptography
    • Generate pub/priv key
  • 🐧Linux
    • Curl
    • Debian
    • Fail2Ban
    • Find
    • Grep & Co
    • Netstat
    • ps
    • pdfcrack
    • qpdf
    • Rsync
    • Scp
    • Tmux
    • Ufw
    • Vim
  • 🐍Python
    • Files Handling
    • Web
  • πŸ‘οΈRecon
    • Cewl
    • DNS
    • Host Discovery
    • nmap
    • Web
  • πŸ”Splunk
    • tstats
  • πŸ“‘SSH
  • πŸ•ΈοΈWeb
    • Gobuster
    • OWASP
    • SQLi
      • Resources
  • ⛏️Resources
    • πŸ“‘Cheatsheets
    • πŸ‹οΈTrainings
Powered by GitBook
On this page
  1. Python

Web

Different Web Methods

import requests

url = 'http://localhost:3000/'

data = {'username':'john','password':'password'}

# Add custom Headers
headers = {'user-agent':'firefox-0.1', 'location': 'blablabla', 'content-type':'text/html'}
r = requests.get(url, headers=headers)

# GET Request
r_get = requests.get(url)

# POST Request with parameters
r_post = requests.post(url, data=pload)

# HEAD Request
r_head = requests.head(url)

# PUT Request
r_put = requests.put(url, data=pload)

# Delete Request
r_del = requests.delete(url)
PreviousFiles HandlingNextRecon

Last updated 1 year ago

🐍