How to convert curl request to browser url

Is it possible to generate an equivalent browser url from all curl requests.
Example:
If I execute the following

curl -v -X GET -H "Host:something.com" "http://foo.com/some?appAction=xux&a=1&b=2"


What would be the corresponding browser url (which I can get directly in the browser)

+3


source to share


1 answer


If "equivalent" means "Use a host header that requires a different host than the request URI," then the answer is no, you can't. The browser will pull the host header from the entered URI.



You may be able to rewrite the headers with browser plugins.

+1


source







All Articles