Skip to content

Commit

Permalink
Add integration test header_curl
Browse files Browse the repository at this point in the history
  • Loading branch information
theoforger authored and hurl-bot committed Jan 21, 2025
1 parent 819085b commit 66fe26e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration/hurl/tests_ok/headers_curl.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
curl 'http://localhost:8000/default-headers'
curl --header 'User-Agent: hurl/1.0' --header 'Host: localhost:8000' 'http://localhost:8000/default-headers'
curl --header 'User-Agent: hurl/1.0' --header 'Host: localhost:8000' 'http://localhost:8000/default-headers'
curl --header 'Fruit: Raspberry' --header 'Fruit: Apple' --header 'Fruit: Banana' --header 'Fruit: Grape' --header 'Color: Green' 'http://localhost:8000/custom-headers'
curl --header 'Fruit: Raspberry' --header 'Fruit: Apple' --header 'Fruit: Banana' --header 'Fruit: Grape' --header 'Color: Green' 'http://localhost:8000/custom-headers'
curl --header 'Beverage: café' 'http://localhost:8000/custom-headers-utf8'
curl --header 'Id: #123' 'http://localhost:8000/custom-headers-value'
curl --header $'Header1: \'' 'http://localhost:8000/custom-headers-quote'
curl 'http://localhost:8000/response-headers'
curl --header 'Empty-Header;' 'http://localhost:8000/empty-headers'
5 changes: 5 additions & 0 deletions integration/hurl/tests_ok/headers_curl.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl --verbose --no-output --curl build/headers.curl tests_ok/headers.hurl

Write-Host (Get-Content build/headers.curl -Raw) -NoNewLine
5 changes: 5 additions & 0 deletions integration/hurl/tests_ok/headers_curl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -Eeuo pipefail
hurl --verbose --no-output --curl build/headers.curl tests_ok/headers.hurl

cat build/headers.curl

0 comments on commit 66fe26e

Please sign in to comment.