最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - HTTP requests using the browser console - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 4

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 = 'http://wallbase/wallpaper/3023660'.

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

发布评论

评论列表(0)

  1. 暂无评论