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

Sending a POST request with urlencoded (x-www-form-urlencoded) data #553

Open
Kambaa opened this issue Aug 9, 2024 · 1 comment
Open

Comments

@Kambaa
Copy link

Kambaa commented Aug 9, 2024

Hello,
How can i send a POST body with x-www-form-urlencoded data?
I couldn't make it work like this:

oha --insecure -m POST \
-T "application/x-www-form-urlencoded" \
-A "text/plain" \
-d '[email protected]&password=mypassword' \
-c 1 \
-n 1 \
https://localhost:8443/my/tickets
@hatoo
Copy link
Owner

hatoo commented Aug 17, 2024

Maybe you need to urlencode each value?
'username=[email protected]&password=mypassword' -> 'username=my%40mail.com.tr&password=mypassword'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants