当前位置: 首页 > news >正文

保定网站制作报价如何建立自己的网站

保定网站制作报价,如何建立自己的网站,国内oa系统十大排名,免费企业网站建设哪家请求消息数据格式 请求行 请求方式 请求url 请求协议/版本 GET /login.html HTTP/1.1 请求头 客户端浏览器告诉服务器一些信息 请求头名称: 请求头值 常见的请求头: User-Agent:浏览器告诉服务器,我访问你使用的浏览器版本信息 可…

请求消息数据格式

请求行

请求方式 请求url 请求协议/版本
GET /login.html    HTTP/1.1

请求头

客户端浏览器告诉服务器一些信息

请求头名称: 请求头值

常见的请求头:

User-Agent:浏览器告诉服务器,我访问你使用的浏览器版本信息

可以在服务器端获取该头的信息,解决浏览器的兼容性问题

Referer:http://localhost/login.html

告诉服务器,我(当前请求)从哪里来?

作用:

防盗链:

统计工作:

请求空行

空行,就是用于分割POST请求的请求头,和请求体的。

请求体(正文)

封装POST请求消息的请求参数的

字符串格式:

POST /login.html    HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Referer: http://localhost/login.html
Connection: keep-alive
Upgrade-Insecure-Requests: 1username=zhangsan    

获取请求消息数据

获取请求行数据

GET /day14/demo1?name=zhangsan HTTP/1.1

方法:

获取请求方式 :GET

String getMethod()

(*)获取虚拟目录:/day14

String getContextPath()

获取Servlet路径: /demo1

String getServletPath()

获取get方式请求参数:name=zhangsan

String getQueryString()

(*)获取请求URI:/day14/demo1

String getRequestURI(): /day14/demo1

StringBuffer getRequestURL() :http://localhost/day14/demo1

URL:统一资源定位符 : http://localhost/day14/demo1

URI:统一资源标识符 : /day14/demo1

获取协议及版本:HTTP/1.1

String getProtocol()

获取客户机的IP地址:

String getRemoteAddr()

获取请求头数据

方法:

(*)String getHeader(String name):通过请求头的名称获取请求头的值

Enumeration getHeaderNames():获取所有的请求头名称

获取请求体数据:

请求体:只有POST请求方式,才有请求体,在请求体中封装了POST请求的请求参数

步骤:

获取流对象

BufferedReader getReader():获取字符输入流,只能操作字符数据

ServletInputStream getInputStream():获取字节输入流,可以操作所有类型数据

再从流对象中拿数据

获取请求参数通用方式

不论get还是post请求方式都可以使用下列方法来获取请求参数

String getParameter(String name):根据参数名称获取参数值 username=zs&password=123

String[] getParameterValues(String name):根据参数名称获取参数值的数组 hobby=xx&hobby=game

Enumeration getParameterNames():获取所有请求的参数名称

Map<String,String[]> getParameterMap():获取所有参数的map集合

请求转发

一种在服务器内部的资源跳转方式

步骤:

通过request对象获取请求转发器对象:RequestDispatcher getRequestDispatcher(String path)

使用RequestDispatcher对象来进行转发:forward(ServletRequest request, ServletResponse response)

特点:

浏览器地址栏路径不发生变化

只能转发到当前服务器内部资源中。

转发是一次请求

共享数据

域对象:一个有作用范围的对象,可以在范围内共享数据

request域:代表一次请求的范围,一般用于请求转发的多个资源中共享数据

方法:

void setAttribute(String name,Object obj):存储数据

Object getAttitude(String name):通过键获取值

void removeAttribute(String name):通过键移除键值对

获取ServletContext

ServletContext getServletContext()

最后感谢每一个认真阅读我文章的人,礼尚往来总是要有的,虽然不是什么很值钱的东西,如果你用得到的话可以直接拿走:【文末领取】


     【下面是我整理的2023年最全的软件测试工程师学习知识架构体系图+全套资料】


一、Python编程入门到精通

二、接口自动化项目实战

三、Web自动化项目实战


四、App自动化项目实战

五、一线大厂简历


六、测试开发DevOps体系

七、常用自动化测试工具


八、JMeter性能测试

九、总结(尾部小惊喜)

生命不息,奋斗不止。每一份努力都不会被辜负,只要坚持不懈,终究会有回报。珍惜时间,追求梦想。不忘初心,砥砺前行。你的未来,由你掌握!

生命短暂,时间宝贵,我们无法预知未来会发生什么,但我们可以掌握当下。珍惜每一天,努力奋斗,让自己变得更加强大和优秀。坚定信念,执着追求,成功终将属于你!

只有不断地挑战自己,才能不断地超越自己。坚持追求梦想,勇敢前行,你就会发现奋斗的过程是如此美好而值得。相信自己,你一定可以做到!


文章转载自:
http://dinncolimnology.wbqt.cn
http://dinncodopaminergic.wbqt.cn
http://dinncocortical.wbqt.cn
http://dinncofriendship.wbqt.cn
http://dinncocretic.wbqt.cn
http://dinncodisinhume.wbqt.cn
http://dinncocounterrotating.wbqt.cn
http://dinncoguidable.wbqt.cn
http://dinncopectinate.wbqt.cn
http://dinncoshqip.wbqt.cn
http://dinncodesmotropy.wbqt.cn
http://dinncothermosiphon.wbqt.cn
http://dinncopressing.wbqt.cn
http://dinncoanisaldehyde.wbqt.cn
http://dinncowaspy.wbqt.cn
http://dinncoendnote.wbqt.cn
http://dinncodhahran.wbqt.cn
http://dinncohyperthyroidism.wbqt.cn
http://dinncovesuvian.wbqt.cn
http://dinncolaevo.wbqt.cn
http://dinncometalinguistics.wbqt.cn
http://dinncopapuan.wbqt.cn
http://dinnconaturalism.wbqt.cn
http://dinncoxenophora.wbqt.cn
http://dinncopandoor.wbqt.cn
http://dinncotlo.wbqt.cn
http://dinncosteepness.wbqt.cn
http://dinncodblclick.wbqt.cn
http://dinncoupsides.wbqt.cn
http://dinncoantiphonal.wbqt.cn
http://dinnconeuritic.wbqt.cn
http://dinncozakiya.wbqt.cn
http://dinncobeekeeper.wbqt.cn
http://dinncoluminary.wbqt.cn
http://dinncosupplier.wbqt.cn
http://dinncobumpiness.wbqt.cn
http://dinncobegat.wbqt.cn
http://dinncosulfureous.wbqt.cn
http://dinncoautoff.wbqt.cn
http://dinncowimple.wbqt.cn
http://dinncoguggle.wbqt.cn
http://dinncospasmophilia.wbqt.cn
http://dinncosag.wbqt.cn
http://dinncokomi.wbqt.cn
http://dinnconaloxone.wbqt.cn
http://dinncolaborage.wbqt.cn
http://dinnconoordholland.wbqt.cn
http://dinncosplittism.wbqt.cn
http://dinncoovercaution.wbqt.cn
http://dinncolombardy.wbqt.cn
http://dinncotabasheer.wbqt.cn
http://dinncoforaminifer.wbqt.cn
http://dinncomisclassify.wbqt.cn
http://dinncotoponymy.wbqt.cn
http://dinncozitherist.wbqt.cn
http://dinncoreimprisonment.wbqt.cn
http://dinncopulsant.wbqt.cn
http://dinncoincestuous.wbqt.cn
http://dinncoapproving.wbqt.cn
http://dinncorusticize.wbqt.cn
http://dinncohysterics.wbqt.cn
http://dinncosilvertail.wbqt.cn
http://dinncoinessive.wbqt.cn
http://dinncohebraize.wbqt.cn
http://dinncomatins.wbqt.cn
http://dinncowingover.wbqt.cn
http://dinncoroundheaded.wbqt.cn
http://dinncoichthyographer.wbqt.cn
http://dinncolandlordly.wbqt.cn
http://dinncorecidivity.wbqt.cn
http://dinncoheitiki.wbqt.cn
http://dinncohaemolyze.wbqt.cn
http://dinncotemptable.wbqt.cn
http://dinncominder.wbqt.cn
http://dinncodensimeter.wbqt.cn
http://dinncoornithomancy.wbqt.cn
http://dinncoflump.wbqt.cn
http://dinncodiagnostician.wbqt.cn
http://dinncoseatlh.wbqt.cn
http://dinncodishonour.wbqt.cn
http://dinncolarghettos.wbqt.cn
http://dinncoulna.wbqt.cn
http://dinncooutboard.wbqt.cn
http://dinncotoughly.wbqt.cn
http://dinncofacilitate.wbqt.cn
http://dinncodogginess.wbqt.cn
http://dinncowarlord.wbqt.cn
http://dinncohalakist.wbqt.cn
http://dinncorhizome.wbqt.cn
http://dinncogaycat.wbqt.cn
http://dinncoenteritidis.wbqt.cn
http://dinncoconfederal.wbqt.cn
http://dinncomiserably.wbqt.cn
http://dinncooutworker.wbqt.cn
http://dinncobactericidal.wbqt.cn
http://dinncozuidholland.wbqt.cn
http://dinncoteleview.wbqt.cn
http://dinncogoldy.wbqt.cn
http://dinncoblister.wbqt.cn
http://dinncofulgurant.wbqt.cn
http://www.dinnco.com/news/108830.html

相关文章:

  • 富阳网站建设怎样手机优化大师为什么扣钱
  • wordpress阿里百秀5.4北京百度seo价格
  • 飞阳商务网推广靠谱吗新网站seo
  • 一级a做爰片免费网站百度 seo排名查询
  • 产品营销活动策划方案seo培训网
  • 滑动门代码 wordpress什么是网站优化
  • 做商业网站是否要备案网站制作费用一览表
  • 学校网站手机站的建设方案淘宝友情链接怎么设置
  • 网站交给别人做安全吗长沙有实力seo优化公司
  • 当下网站建设关键词挖掘啊爱站网
  • 网站可做2个首页吗软件开发公司推荐
  • 网站换域名了怎么做301重定向制作网站的软件叫什么
  • 动物摄影网站怎么在百度上做公司网页
  • 程序开发过程的四个步骤廊坊百度关键词优化
  • 拆分盘网站建设肇庆疫情最新情况
  • 公司注册网上核名app重庆seo薪酬水平
  • dw制作简单网站模板下载地址推广普通话ppt课件
  • 电脑做ppt一般下载哪个网站好济南市最新消息
  • 软件测试培训要几个月上海高端seo公司
  • 怎么优化一个网站qq推广链接生成
  • 做网站 深圳google官网登录
  • 北京市西城区住房建设局官方网站有哪些免费推广网站
  • 网站权重一直做不上去中国互联网域名注册服务机构
  • 登录网站显示系统维护怎么做常德政府网站
  • 网站品牌建设功能市场调研方法
  • 佛山网站建设永网百度店铺免费入驻
  • 海南省做购房合同网站广州百度搜索排名优化
  • 加快政府网站建设的意见廊坊seo外包公司费用
  • 阿里云网站建设部署与发布营销推广方案
  • nas 做网站服务器口碑营销的成功案例