-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
66 lines (52 loc) · 2.59 KB
/
help.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
NAME
rediff: Re(quest|sponse) diff(erence)
USAGE
$bundle exec ruby rediff.rb action [urls] [options]
DESCRIPTION
rediff is a tool to check the difference of data from servers, using HTTP(S) requests.
The cookie(s) would be sent over each request, so you should login to get cookies first,
then you can login to urls that require authentication.
ACTION
The action of operation.
Available actions are login|diff|clear_cookies
URLS
The URL syntax is protocol-dependent. You'll find a detailed description in RFC 3986.
You can specify multiple URLs continuously like:
$ruby rediff.rb diff https://example.com/sign_in https://other-example.com/sign_in [options]
NOTE: if action is clear_cookies then url can be 'all' for clear all saved cookies
Eg: $bundle exec ruby rediff.rb clear_cookies all [options]
OPTIONS
Options start with one or two dashes. Many of the options require an
additional value next to them following by "=".
-i, --input=<input>
Input source for diff checking.
Available methods: file|request
Default is request.
Eg: rediff -i file -f html diff /path/to/file1.json /path/to/file2.json
-m, --method=<method>
HTTP(s) method would be used to request to servers.
Available methods: get|post|put
-p, --params=<request params>
Params would be used in request.
Eg: --params="user[email][email protected]&password=123456"
-f, --format=<format>
Format of output with compatible viewing.
Available formats: color|text|html|html_simple
color: export to stdio with colors
text: open output in text editor
html_simple: open output in browser
html: same as html_simple
--auth-token-attr=<auth token attr>
Attribute of html input tag that contains authenticity token.
Default: "authenticity_token" that means input as bellow:
<input name="authenticity_token" value="authenticity_token_value" />
--form-action-attr=<form action attr>
Attribute of html form tag that contains form action.
Default: "action" that means form as bellow:
<form action="/action_value" />
--form-method-attr=<form method attr>
Attribute of html form tag that contains form method.
Default: "method" that means form as bellow:
<form method="/method_value" />
-v, --verbose
Output executed steps verbosely