Commit Graph

456 Commits

Author SHA1 Message Date
Zandt Tittle
98b0f50741
Add --unix-socket option
This is a feature provided by cURL that allows sending requests to
a web server via a Unix Domain Socket. Some use cases
include:

* Querying docker API
* Running a web server w/o opening a TCP port for security and/or performance reasons

https://curl.se/docs/manpage.html#--unix-socket
2024-01-06 13:05:58 -06:00
Fabrice Reix
0b5c1f1cfc
Do not forward Authorization header by default 2024-01-06 15:27:29 +01:00
Fabrice Reix
6ac325d879
Use Template for filename type 2024-01-06 09:14:16 +01:00
jcamiel
be6297cd5e
Export entry source line number in JSON output 2024-01-04 17:29:44 +01:00
Fabrice Reix
537acaa2c1
Keep initial request headers when following redirects 2023-12-16 16:32:13 +01:00
Fabrice Reix
1eeb340c30
Add integ test for jsonpath filter 2023-12-15 14:27:33 +01:00
Fabrice Reix
9f0894e26d
Update test integ 2023-12-14 19:59:07 +00:00
jcamiel
1c24185aeb
Support key password in --cert option (certificate[:password]) 2023-12-14 17:54:14 +01:00
Fabrice Reix
0b2c069ff0
Add test float 2023-12-13 08:50:13 +01:00
Fabrice Reix
4ff045654d
Add integ tests export 2023-12-09 15:17:46 +01:00
Fabrice Reix
d42fb9bc95
Add file predicate value 2023-12-09 11:28:08 +01:00
Fabrice Reix
541f6e7a90
Update integ test hurlfmt for options 2023-12-08 15:05:59 +00:00
jcamiel
a7807cfe21
Better unicode parsing error description. 2023-12-08 15:31:09 +01:00
jcamiel
95528ba5b9
Better option error description. 2023-12-08 14:58:17 +01:00
jcamiel
0c92430520
Better hexadecimal digit parsing error description. 2023-12-08 14:34:29 +01:00
jcamiel
bdf0d05dcf
Better multi-part form data file content-type parsing error description. 2023-12-08 14:34:28 +01:00
jcamiel
e7e7faf4c7
Better XML parsing error description. 2023-12-08 14:34:28 +01:00
jcamiel
03dcb5361e
Fix unicode surrogate pair decoding in JSON request body 2023-12-08 11:43:41 +01:00
Fabrice Reix
4a94c882af
Increase coverage for hurlfmt JSON/HTML output 2023-12-07 12:41:58 +00:00
Fabrice Reix
54994dba37
Move Hurl file check to check workflow 2023-12-05 15:55:04 +00:00
Fabrice Reix
947603af12
Add non-renderable variables 2023-12-05 09:34:02 +01:00
Fabrice Reix
a97df632bc
Split integ tests between hurl and hurlfmt 2023-12-03 11:57:30 +01:00
jcamiel
9c7e793ba1
Some refacto on output managment 2023-12-02 13:26:35 +01:00
jcamiel
f2c5198ff2
Add integration test for --output per request option. 2023-11-30 18:00:08 +01:00
Fabrice Reix
774650e409
Add Test integ for big numbers 2023-11-30 11:02:50 +01:00
Fabrice Reix
a4df7f79a0
Add jsonpath Test 2023-11-26 11:28:36 +01:00
Fabrice Reix
11d8af6957
Use Number comparison to eval predicates 2023-11-15 17:04:37 +01:00
jcamiel
0b86a70d43
Fix undefined error for various I/O error using --output. 2023-11-14 16:03:05 +01:00
Fabrice Reix
b62a09f887
Fix xpath filter in JSON output 2023-11-08 15:18:57 +01:00
Fabrice Reix
74edc18bd2
Add jsonpath filter 2023-11-08 15:18:52 +01:00
jcamiel
db6932641c
Improve assert_header integration test with multiple HTTP response headers for the same name. 2023-11-07 13:27:43 +01:00
Fabrice Reix
d2a220fb05
Generating Clap commands source file 2023-11-06 11:14:24 +01:00
robozati
97a02f3990
Update the JSON parser to account for fabricereix changes 2023-11-02 08:59:45 +00:00
robozati
678aaca9f3
Improve JSON body parsing error reporting
Adds more checks to account for empty elements, commas after the last
element that shouldn't be there and braces not closed.
2023-11-02 08:59:43 +00:00
jcamiel
c72f04fa0e
Remove xmltree/indexmap dependency.
Due to xmltree re-exposing an older version of indexmap, we couldnt' upgrade to the latest version of indemap.
xmltree is a tree in-memory representation of an XML document that we use for JUnit export. As xmltree is a thin layer above xml-rs, we re-implement a thin tree in-memory XML document using xml-rs directly and remove xmltree/indexmap dependency.
2023-11-01 20:23:49 +01:00
jcamiel
9612100f39
Update Python dependencies. 2023-10-27 16:20:33 +02:00
jcamiel
0757d5e7aa
Add failed test in HTML/JUnit/TAP reports 2023-10-27 14:43:13 +02:00
jcamiel
1f7f897451
Update header integration test 2023-10-21 17:45:42 +02:00
Fabrice Reix
a8d6ac6d4b
Ignore warning messages on more platforms 2023-10-21 11:04:02 +02:00
Fabrice Reix
ada42acb32
Add option skip 2023-10-21 11:04:01 +02:00
Filipe PINTO
5fb9b3a54f
Support http2 on windows 2023-10-20 17:46:46 +02:00
Fabrice Reix
58b249ffa1
Support template in option values 2023-10-19 14:42:50 +00:00
jcamiel
662c550eb8
Add --ipv4/--ipv6 option 2023-10-18 14:37:42 +00:00
jcamiel
ab16f587e6
Add optional arguments host and port for integration server (default is 127.0.0.1:8000). 2023-10-18 13:39:41 +02:00
jcamiel
61fd37b2ae
Add error message for unsupported HTTP version. 2023-10-14 23:33:35 +02:00
jcamiel
46e3bf2cfb
Use exit code 255 to signal skipped integration test. 2023-10-13 00:03:16 +02:00
jcamiel
9d5b611b9e
Adapt test excepted stderr to take libcurl multipart boundary size change in 8.4.0+.
See https://github.com/curl/curl/pull/11838/files where `define MIME_RAND_BOUNDARY_CHARS` has been changed from 16 to 22.
The new pattern on 'Content-Lenght' works for previsous and newer libcurl version.
2023-10-12 23:23:11 +02:00
jcamiel
4363aa9875
Force refreshing libcurl connections if HTTP version requested change 2023-10-11 09:13:44 +02:00
Fabrice Reix
ecc1c1fc8b
Ignore libcurl library warning in the check itself 2023-10-10 14:07:38 +00:00
Fabrice Reix
b20813bc29
Generate test report in build/ 2023-10-10 14:07:37 +00:00