1、HttpRequest

1.1 示例

1)在Demo1的Dump HTTP request示例
在浏览器中输入http://127.0.0.1:8080点击Dump HTTP request
【Qt】使用Qt实现Web服务器(三):QtWebApp中HttpRequest和HttpResponse-LMLPHP
2)切换到页面:http://127.0.0.1:8080/dump
该页面显示请求和响应的内容:
【Qt】使用Qt实现Web服务器(三):QtWebApp中HttpRequest和HttpResponse-LMLPHP

Request:
Method: GET
Path: /dump
Version: HTTP/1.1
Headers:
accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
accept-encoding=gzip, deflate, br
accept-language=en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7
authorization=Basic YWRtaW46YWRtaW4=
connection=keep-alive
host=127.0.0.1:8080
referer=http://127.0.0.1:8080/
sec-ch-ua=&
03-21 07:14