Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No cookie header attached when setting cookies in a request #232

Open
pisoj opened this issue Sep 4, 2023 · 0 comments
Open

[BUG] No cookie header attached when setting cookies in a request #232

pisoj opened this issue Sep 4, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pisoj
Copy link

pisoj commented Sep 4, 2023

Describe the bug
When setting cookies in a request it doesn't seem they are actually sent to the server.

Code Sample
If applicable, add a small sample code that illustrates the error.
To verify this I run a simple http server with python:

python3 -m http.server

and tried to make a GET request with a sample cookie attached.

skrape(HttpFetcher) {
    request {
        url = "http://127.0.01:8000"
        cookies = mapOf("mycookie" to "myvalue")
    }

    response {
    }
}

Expected behavior
A clear and concise description of what you expected to happen.
I expected cookies to be put into a Cookie header and sent to the server.

Additional context
Unfortunately there was no Cookie header in the request.
Screenshot 2023-09-04 at 11 58 38

Gradle dependency: implementation("it.skrape:skrapeit:1.1.5")

@pisoj pisoj added the bug Something isn't working label Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants