/
accepts_and_methods.txt
89 lines (73 loc) · 3.68 KB
/
accepts_and_methods.txt
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Checking Accepts across sites
=============================
GET http://google.com/ [json]
Asked for application/json but got text/html (Mudbug::ContentTypeError)
GET http://google.com/ [html]
GET http://google.com/ [text]
Asked for text/plain but got text/html (Mudbug::ContentTypeError)
GET http://google.com/ [xml]
Asked for application/xml but got text/html (Mudbug::ContentTypeError)
GET http://yahoo.com/ [json]
Asked for application/json but got text/html (Mudbug::ContentTypeError)
GET http://yahoo.com/ [html]
GET http://yahoo.com/ [text]
Asked for text/plain but got text/html (Mudbug::ContentTypeError)
GET http://yahoo.com/ [xml]
Asked for application/xml but got text/html (Mudbug::ContentTypeError)
GET http://microsoft.com/ [json]
Asked for application/json but got text/html (Mudbug::ContentTypeError)
GET http://microsoft.com/ [html]
GET http://microsoft.com/ [text]
Asked for text/plain but got text/html (Mudbug::ContentTypeError)
GET http://microsoft.com/ [xml]
Asked for application/xml but got text/html (Mudbug::ContentTypeError)
GET http://amazon.com/ [json]
503 Service Unavailable (RestClient::ServiceUnavailable)
GET http://amazon.com/ [html]
503 Service Unavailable (RestClient::ServiceUnavailable)
GET http://amazon.com/ [text]
503 Service Unavailable (RestClient::ServiceUnavailable)
GET http://amazon.com/ [xml]
503 Service Unavailable (RestClient::ServiceUnavailable)
GET http://ibm.com/ [json]
Asked for application/json but got text/html (Mudbug::ContentTypeError)
GET http://ibm.com/ [html]
GET http://ibm.com/ [text]
Asked for text/plain but got text/html (Mudbug::ContentTypeError)
GET http://ibm.com/ [xml]
Asked for application/xml but got text/html (Mudbug::ContentTypeError)
GET http://reddit.com/ [json]
Asked for application/json but got text/html (Mudbug::ContentTypeError)
GET http://reddit.com/ [html]
GET http://reddit.com/ [text]
Asked for text/plain but got text/html (Mudbug::ContentTypeError)
GET http://reddit.com/ [xml]
Asked for application/xml but got text/html (Mudbug::ContentTypeError)
Checking HTTP methods across sites
==================================
POST/PUT payload = "{\"hi\":\"mom\"}"
GET http://google.com/
POST http://google.com/ 405 Method Not Allowed (RestClient::MethodNotAllowed)
PUT http://google.com/ 405 Method Not Allowed (RestClient::MethodNotAllowed)
DELETE http://google.com/ 405 Method Not Allowed (RestClient::MethodNotAllowed)
GET http://yahoo.com/
POST http://yahoo.com/ 301 Moved Permanently (RestClient::MovedPermanently)
PUT http://yahoo.com/ 301 Moved Permanently (RestClient::MovedPermanently)
DELETE http://yahoo.com/ 403 Forbidden (RestClient::Forbidden)
GET http://microsoft.com/
POST http://microsoft.com/ 301 Moved Permanently (RestClient::MovedPermanently)
PUT http://microsoft.com/ 301 Moved Permanently (RestClient::MovedPermanently)
DELETE http://microsoft.com/ 301 Moved Permanently (RestClient::MovedPermanently)
GET http://amazon.com/ 503 Service Unavailable (RestClient::ServiceUnavailable)
POST http://amazon.com/ 301 Moved Permanently (RestClient::MovedPermanently)
PUT http://amazon.com/ 301 Moved Permanently (RestClient::MovedPermanently)
DELETE http://amazon.com/ 301 Moved Permanently (RestClient::MovedPermanently)
GET http://ibm.com/
POST http://ibm.com/ 301 Moved Permanently (RestClient::MovedPermanently)
PUT http://ibm.com/ 301 Moved Permanently (RestClient::MovedPermanently)
DELETE http://ibm.com/ 301 Moved Permanently (RestClient::MovedPermanently)
GET http://reddit.com/
POST http://reddit.com/ 301 Moved Permanently (RestClient::MovedPermanently)
PUT http://reddit.com/ 301 Moved Permanently (RestClient::MovedPermanently)
DELETE http://reddit.com/ 301 Moved Permanently (RestClient::MovedPermanently)
DONE