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

Query string not working for GET request #91

Open
vapniks opened this issue Jan 15, 2021 · 0 comments
Open

Query string not working for GET request #91

vapniks opened this issue Jan 15, 2021 · 0 comments

Comments

@vapniks
Copy link

vapniks commented Jan 15, 2021

In zsh this works:

> curl 'https://qrng.anu.edu.au/API/jsonI.php?type=uint8&length=10'
{"type":"uint8","length":10,"data":[214,140,44,142,254,214,185,107,213,30],"success":true}

but this doesn't

> resty https://qrng.anu.edu.au/API
> GET /jsonI.php -q "type=uint8&length=10"
{"success":false}

It appears that resty quotes the ampersand:

> GET /jsonI.php -q "type=uint8&length=10" --dry-run
curl -sLv --data-binary '' -X GET -b "/home/me/.resty/c/qrng.anu.edu.au" -c "/home/me/.resty/c/qrng.anu.edu.au" "https://qrng.anu.edu.au/API/jsonI.php?type=uint8\&length=10"

am I doing something wrong?

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

1 participant