diff --git a/README.md b/README.md index a040b6009..d29ea79dc 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" # Do login! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` @@ -589,7 +588,7 @@ Check the SHA-256 response body hash: ```hurl GET https://example.org/data.tar.gz -HTTP/* * +HTTP 200 [Asserts] sha256 == hex,039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81; ``` @@ -681,9 +680,9 @@ HTTP 200 [Captures] csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" + POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` diff --git a/contrib/npm/hurl/README.md b/contrib/npm/hurl/README.md index fa4954463..ab8680981 100644 --- a/contrib/npm/hurl/README.md +++ b/contrib/npm/hurl/README.md @@ -16,10 +16,10 @@ HTTP 200 [Captures] csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" + # Do login! POST https://example.net/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` diff --git a/contrib/npm/hurl/docs/hurl.1 b/contrib/npm/hurl/docs/hurl.1 index 36e8babe5..169f7ba44 100644 --- a/contrib/npm/hurl/docs/hurl.1 +++ b/contrib/npm/hurl/docs/hurl.1 @@ -70,6 +70,7 @@ A typical example occurs with CSRF tokens. [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" + # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} diff --git a/docs/capturing-response.md b/docs/capturing-response.md index e4cf09ce9..6d910f4e6 100644 --- a/docs/capturing-response.md +++ b/docs/capturing-response.md @@ -22,10 +22,10 @@ HTTP 200 [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" + # Do the login ! POST https://acmecorp.net/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` diff --git a/docs/home.md b/docs/home.md index be5ca87b5..6872b71f5 100644 --- a/docs/home.md +++ b/docs/home.md @@ -26,7 +26,6 @@ csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" # Do login! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` diff --git a/docs/manual.md b/docs/manual.md index 947cf0553..76d0fcb6c 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -80,6 +80,7 @@ HTTP 200 [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" + # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} diff --git a/docs/manual/hurl.1 b/docs/manual/hurl.1 index 9d3d738dd..81a55a33a 100644 --- a/docs/manual/hurl.1 +++ b/docs/manual/hurl.1 @@ -70,6 +70,7 @@ A typical example occurs with CSRF tokens. [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" + # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} diff --git a/docs/samples.md b/docs/samples.md index 359199fd8..6fe05af33 100644 --- a/docs/samples.md +++ b/docs/samples.md @@ -352,7 +352,7 @@ Check the SHA-256 response body hash: ```hurl GET https://example.org/data.tar.gz -HTTP/* * +HTTP 200 [Asserts] sha256 == hex,039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81; ``` @@ -444,9 +444,9 @@ HTTP 200 [Captures] csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" + POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` diff --git a/docs/templates.md b/docs/templates.md index 0b2fab7da..9fe3671d0 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -12,10 +12,10 @@ HTTP 200 [Captures] csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" + # Do the login ! POST https://acmecorp.net/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` diff --git a/packages/hurl/README.md b/packages/hurl/README.md index 75a4f8a8f..812829c03 100644 --- a/packages/hurl/README.md +++ b/packages/hurl/README.md @@ -28,7 +28,6 @@ csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" # Do login! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` @@ -589,7 +588,7 @@ Check the SHA-256 response body hash: ```hurl GET https://example.org/data.tar.gz -HTTP/* * +HTTP 200 [Asserts] sha256 == hex,039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81; ``` @@ -681,9 +680,9 @@ HTTP 200 [Captures] csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" + POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} - HTTP 302 ``` @@ -784,6 +783,7 @@ HTTP 200 [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" + # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}}