DextrousDave DextrousDave - 5 months ago 5x
Javascript Question

HTTP requests using the browser console

I want to test a download link from the broswer console by using HTTP requests:

So when doing this, the console tells me:

SyntaxError: Unexpected identifier
get "";
SyntaxError: Unexpected string

So how do you actually make HTTP calls from the console and viewing the response?



Depending on browser you have to enable persistent network logging. It's available on both Firefox and Chrome.

Then in the console just execute window.location = ''.

Check the network log and you'll get your response header, body, etc.