Skip to content
Permalink
Newer
Older
100644 23 lines (20 sloc) 640 Bytes
Oct 12, 2018
1
*** Settings ***
2
Library RequestsLibrary
3
4
*** Keywords ***
5
Get
6
[Arguments] ${uri}
7
Create Session alias=md url=http://md.sandbox.ti.internet2.edu
8
${resp}= Get Request alias=md uri=${uri}
9
[Return] ${resp}
10
11
Get With Gzip
12
[Arguments] ${uri}
13
Create Session alias=md url=http://md.sandbox.ti.internet2.edu
14
&{headers}= Create Dictionary Accept-Encoding=gzip
15
${resp}= Get Request alias=md uri=${uri} headers=&{headers}
16
[Return] ${resp}
17
18
Head
19
[Arguments] ${uri}
20
Log ${uri}
21
Create Session alias=md url=http://md.sandbox.ti.internet2.edu
22
${resp}= Head Request alias=md uri=${uri}
23
[Return] ${resp}
You can’t perform that action at this time.