admin管理员组文章数量:1023045
I want to test a download link from the broswer console by using HTTP requests:
So when doing this, the console tells me:
get ;
SyntaxError: Unexpected identifier
get "";
SyntaxError: Unexpected string
So how do you actually make HTTP calls from the console and viewing the response?
Thanks
I want to test a download link from the broswer console by using HTTP requests:
So when doing this, the console tells me:
get http://wallbase/wallpaper/3023660;
SyntaxError: Unexpected identifier
get "http://wallbase/wallpaper/3023660";
SyntaxError: Unexpected string
So how do you actually make HTTP calls from the console and viewing the response?
Thanks
Share Improve this question asked Sep 3, 2013 at 10:15 DextrousDaveDextrousDave 6,80337 gold badges95 silver badges136 bronze badges1 Answer
Reset to default 4Depending 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 = 'http://wallbase/wallpaper/3023660'
.
Check the network log and you'll get your response header
, body
, etc.
I want to test a download link from the broswer console by using HTTP requests:
So when doing this, the console tells me:
get ;
SyntaxError: Unexpected identifier
get "";
SyntaxError: Unexpected string
So how do you actually make HTTP calls from the console and viewing the response?
Thanks
I want to test a download link from the broswer console by using HTTP requests:
So when doing this, the console tells me:
get http://wallbase/wallpaper/3023660;
SyntaxError: Unexpected identifier
get "http://wallbase/wallpaper/3023660";
SyntaxError: Unexpected string
So how do you actually make HTTP calls from the console and viewing the response?
Thanks
Share Improve this question asked Sep 3, 2013 at 10:15 DextrousDaveDextrousDave 6,80337 gold badges95 silver badges136 bronze badges1 Answer
Reset to default 4Depending 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 = 'http://wallbase/wallpaper/3023660'
.
Check the network log and you'll get your response header
, body
, etc.
本文标签: javascriptHTTP requests using the browser consoleStack Overflow
版权声明:本文标题:javascript - HTTP requests using the browser console - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745562144a2156225.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论