@@ -83,7 +83,7 @@ fs.writeFileSync("../http/my-file.txt", "Hello, world!");
8383 request.variables.set('PASSWORD', crypto.randomBytes(16).toString('hex'));
8484%}
8585< ./pre-request.js
86- POST https://httpbin.org /post HTTP/1.1
86+ POST https://echo.getkulala.net /post HTTP/1.1
8787Accept: application/json
8888Content-Type: application/json
8989Authorization: Bearer Foo:bar
@@ -106,13 +106,13 @@ Authorization: Bearer Foo:bar
106106###
107107
108108### REQUEST_TWO
109- POST https://httpbin.org /post HTTP/1.1
109+ POST https://echo.getkulala.net /post HTTP/1.1
110110accept: application/json
111111content-type: application/json
112112
113113{
114- "token": "{{REQUEST_ONE.response.body.$.json .token}}",
115- "nested": "{{REQUEST_ONE.response.body.$.json .deep.nested[1].key}}",
114+ "token": "{{REQUEST_ONE.response.body.$.body .token}}",
115+ "nested": "{{REQUEST_ONE.response.body.$.body .deep.nested[1].key}}",
116116 "gorilla": "{{GORILLA}}"
117117}
118118```
@@ -148,7 +148,7 @@ THIS_IS_SOME_TOKEN_VALUE_123
148148
149149``` http title="./post-request-example.http"
150150### REQUEST_ONE_
151- POST https://httpbin.org /post HTTP/1.1
151+ POST https://echo.getkulala.net /post HTTP/1.1
152152Accept: application/json
153153Content-Type: application/json
154154Authorization: Bearer Foo:bar
@@ -166,14 +166,14 @@ Authorization: Bearer Foo:bar
166166
167167> {%
168168 var fs = require('fs');
169- fs.writeFileSync('TOKEN.txt', response.body.json .token);
170- client.global.set('GORILLA_TOKEN', response.body.json .token);
169+ fs.writeFileSync('TOKEN.txt', response.body.body .token);
170+ client.global.set('GORILLA_TOKEN', response.body.body .token);
171171%}
172172
173173###
174174
175175### REQUEST_TWO_2_
176- POST https://httpbin.org /post HTTP/1.1
176+ POST https://echo.getkulala.net /post HTTP/1.1
177177Accept: application/json
178178Content-Type: application/json
179179
@@ -186,7 +186,7 @@ Content-Type: application/json
186186###
187187
188188### REQUEST_THREE
189- POST https://httpbin.org /post HTTP/1.1
189+ POST https://echo.getkulala.net /post HTTP/1.1
190190Accept: application/json
191191Content-Type: application/json
192192
@@ -214,7 +214,7 @@ client.global.set("BONOBO", response.headers.valueOf("Date"));
214214 console.log(PASSWORD)
215215%}
216216< ./pre-request.js
217- POST https://httpbin.org /post HTTP/1.1
217+ POST https://echo.getkulala.net /post HTTP/1.1
218218Accept: application/json
219219Content-Type: application/json
220220Authorization: Bearer Foo:bar
@@ -235,7 +235,7 @@ Authorization: Bearer Foo:bar
235235}
236236
237237> {%
238- var token = response.body.json .token
238+ var token = response.body.body .token
239239 var fs = require('fs');
240240 fs.writeFileSync('TOKEN.txt', token);
241241 client.global.set('GORILLA_TOKEN', token);
0 commit comments