@@ -119,7 +119,7 @@ fs.writeFileSync("../http/my-file.txt", "Hello, world!");
119119 request.variables.set('PASSWORD', crypto.randomBytes(16).toString('hex'));
120120%}
121121< ./pre-request.js
122- POST https://httpbin.org /post HTTP/1.1
122+ POST https://echo.getkulala.net /post HTTP/1.1
123123Accept: application/json
124124Content-Type: application/json
125125Authorization: Bearer Foo:bar
@@ -142,13 +142,13 @@ Authorization: Bearer Foo:bar
142142###
143143
144144### REQUEST_TWO
145- POST https://httpbin.org /post HTTP/1.1
145+ POST https://echo.getkulala.net /post HTTP/1.1
146146accept: application/json
147147content-type: application/json
148148
149149{
150- "token": "{{REQUEST_ONE.response.body.$.json .token}}",
151- "nested": "{{REQUEST_ONE.response.body.$.json .deep.nested[1].key}}",
150+ "token": "{{REQUEST_ONE.response.body.$.body .token}}",
151+ "nested": "{{REQUEST_ONE.response.body.$.body .deep.nested[1].key}}",
152152 "gorilla": "{{GORILLA}}"
153153}
154154```
@@ -184,7 +184,7 @@ THIS_IS_SOME_TOKEN_VALUE_123
184184
185185``` http title="./post-request-example.http"
186186### REQUEST_ONE_
187- POST https://httpbin.org /post HTTP/1.1
187+ POST https://echo.getkulala.net /post HTTP/1.1
188188Accept: application/json
189189Content-Type: application/json
190190Authorization: Bearer Foo:bar
@@ -202,14 +202,14 @@ Authorization: Bearer Foo:bar
202202
203203> {%
204204 var fs = require('fs');
205- fs.writeFileSync('TOKEN.txt', response.body.json .token);
206- client.global.set('GORILLA_TOKEN', response.body.json .token);
205+ fs.writeFileSync('TOKEN.txt', response.body.body .token);
206+ client.global.set('GORILLA_TOKEN', response.body.body .token);
207207%}
208208
209209###
210210
211211### REQUEST_TWO_2_
212- POST https://httpbin.org /post HTTP/1.1
212+ POST https://echo.getkulala.net /post HTTP/1.1
213213Accept: application/json
214214Content-Type: application/json
215215
@@ -222,7 +222,7 @@ Content-Type: application/json
222222###
223223
224224### REQUEST_THREE
225- POST https://httpbin.org /post HTTP/1.1
225+ POST https://echo.getkulala.net /post HTTP/1.1
226226Accept: application/json
227227Content-Type: application/json
228228
@@ -250,7 +250,7 @@ client.global.set("BONOBO", response.headers.valueOf("Date"));
250250 console.log(PASSWORD)
251251%}
252252< ./pre-request.js
253- POST https://httpbin.org /post HTTP/1.1
253+ POST https://echo.getkulala.net /post HTTP/1.1
254254Accept: application/json
255255Content-Type: application/json
256256Authorization: Bearer Foo:bar
@@ -271,7 +271,7 @@ Authorization: Bearer Foo:bar
271271}
272272
273273> {%
274- var token = response.body.json .token
274+ var token = response.body.body .token
275275 var fs = require('fs');
276276 fs.writeFileSync('TOKEN.txt', token);
277277 client.global.set('GORILLA_TOKEN', token);
0 commit comments