访问一个网页
http://kaoshi.edu.sina.com.cn/college/scorelist?tab=batch&wl=1&local=2&batch=&syear=2013
url:协议 + 域名/IP + 端口 + 路由 + 参数
ping
通过url能得到什么
在浏览器中打开
墙裂推荐大家使用Chrome浏览器
渲染效果、调试功能都是没话说的
http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html
开发者工具
显示网页源代码、检查
- Elements:页面渲染之后的结构,任意调整、即时显示;
- Console:打印调试;
- Sources:使用到的文件;
- Network:全部网络请求。
Http请求
Http是目前最通用的web传输协议
- GET:参数包含在url中;
- POST:参数包含在数据包中,url中不可见。
http://shuju.wdzj.com/plat-info-59.html
Url类型
- html:返回html结构页面,通过浏览器渲染后呈现给用户;
- API:Application Programming Interfaces,请求后完成某些功能,例如返回数据。
http://kaoshi.edu.sina.com.cn/?p=college&s=api2015&a=getAllCollege