10 karma · joined Nov 24, 2020 (6y ago) · 6 submissions
comment 5y ago · link · parent
We have related issues: - https://github.com/Orange-OpenSource/hurl/issues/87 - https://github.com/Orange-OpenSource/hurl/issues/88
Running several Hurl files concurrently (and independently) is clear and we will probably add in the next few months.
Running requests concurrently in the same Hurl file will be more complicated. The Hurl language has to describe a clear semantic about it.
comment 5y ago · link · parent
Relating to the choice of Rust, we think that it is the best language for this type of command-line tool. Performant like C/C++, but way safer to develop. And using native existing libs such as libcurl is possible.
comment 5y ago · link · parent
# Get home:
GET https://example.net
HTTP/1.1 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/1.1 302