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

Encoded URL in X-Proxy-URL #33

Open
janoskaz opened this issue Dec 17, 2017 · 0 comments
Open

Encoded URL in X-Proxy-URL #33

janoskaz opened this issue Dec 17, 2017 · 0 comments

Comments

@janoskaz
Copy link

I have trouble retrieving data using encoded url.

curl correctly retrieves data, if I urlencode whitespaces: curl "http://birds.cz:8080/v1/eshop/messages?public=true&where=Active%20is%20true%20and%20Code%20is%20'ESHOP_MSG'"

But proxy server returns nothing, whether I encode url in header or not. The same goes for csurl parameter.

// not encoded
curl -v -H "X-Proxy-URL: http://birds.cz:8080/v1/eshop/messages?public=true&where=Active is true and Code is 'ESHOP_MSG'" http://myproxy.com/proxy.php

// fully encoded
curl -v -H "X-Proxy-URL: http%3A%2F%2Fbirds.cz%3A8080%2Fv1%2Feshop%2Fmessages%3Fpublic%3Dtrue%26where%3DActive%20is%20true%20and%20Code%20is%20%27ESHOP_MSG%27" http://myproxy.com/proxy.php

// encoded only whitespaces
curl -v -H "X-Proxy-URL: http://birds.cz:8080/v1/eshop/messages?public=true&where=Active%20is%20true%20and%20Code%20is%20'ESHOP_MSG'" http://myproxy.com/proxy.php
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