Skip to content

How do I clear cookies after each call in a .hurl file? #1740

Answered by jcamiel
direktoren asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you're right we don't have any official mechanism to clear cookie storage. That said, there is an undocumented way of clearing cookie before a request:

# @cookie_storage_clear
GET https://foo.com

This special comment will clear the cookie storage. It's undocumented because, for the moment, we are not sure about how to deals (syntax wise) with these kind of commands.

In your case, a better way would be to implement a new option --no-cookie-storage that will prevent a cookie store within a Hurl file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@direktoren
Comment options

Answer selected by direktoren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants