-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-verb.py
38 lines (33 loc) · 1.13 KB
/
http-verb.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#Author Vanshit Malhotra
import requests
verbs = ['GET', 'POST', 'TRACE', 'OPTIONS', 'HEAD', 'PUT', 'DELETE', 'PATCH', 'CONNECT', 'ARBTRY']
webapp = raw_input('Enter the URI to be Tested : ')
print("\n The URI entered by you is : " + webapp )
print
print raw_input("Press any key to continue ..... ")
print " **********//////////??????//////**************"
print
print " Testing HTTP Verbs For URI : " + webapp
print('''
.-" "-.
/ \
| |
|, .-. .-. ,|
| )(__/ \__)( |
|/ /\ \|
(@_ (_ ^^ _)
_ ) \_______\__|IIIIII|__/__________________________
(_)@8@8{}<________|-\IIIIII/-|___________________________>
)_/ \ /
(@ `--------` Author : Vanshit Malhotra
''')
print " **********//////////??????//////**************"
print
print "HTTP VERB & STATUS CODE"
for verb in verbs:
req = requests.request(verb, webapp)
print verb, req.status_code, req.reason
print
print "HTTP HEADERS for " + webapp + " are :"
print
print req.headers