Details about HTTP

本文详细解析了HTTP1.0与1.1的主要区别,包括连接管理方式的不同,请求与响应的组成元素,并介绍了如何使用telnet命令进行验证。此外,还对比了GET与POST方法在数据提交上的差异。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

HTTP(Hyper Text Transfer Protocol) is managed by W3C institute. There are two versions 1.0 and 1.1. The version 1.1 is used widely.

But what's the difference of the two versions?

  Version 1.0 : the request sended to the server and the response back to the client then the connection will be closed immediately.

  Version 1.1 : the connection could be used many times.

How to prove the difference? Use the telnet command in cmd.

 

The http request and http response are two main parts.

Request:

  GET /myapp/1.html HTTP/1.1             ----->  the submit method ; the source's path ; the http's version

  Host: localhost:8080          ----->  the host's address include the host's name and the port

  Connection: keep-alive        ------> the connection status

  Upgrade-Insecure-Requests: 1          ------> 

  User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8       -----> the accepted MIME type , we can search the name via web.xml

                                            which has the tag :

                                                    <mime-mapping>

                                                      <extension>html</extension>

                                                      <mime-type>text/html</mime-type>

                                                    </mime-mapping>

  Accept-Encoding: gzip, deflate, sdch, br  -----> tell the server the browser support which kind of encoding type.

  Accept-Language: zh-CN,zh;q=0.8   -----> the language browser could use.The header's value could be set in the browser's setting . "q=0.8" represents the                     using frequncy of the language.The accept-language could support different accept-charset.

  Referer:http://localhost:8080/myapp/2.html  -----> Include an URL and user accesses the page via the URL.Referer could be used to count the flow.

  -----> there should reserve a blank row

 

Response:

  HTTP/1.1 200 OK           ----->  the http version ; the status code(200:normal 302:foward 404:resource not found 500:server error) ;

                        the connecting status

  Server: Apache-Coyote/1.1         -----> 

  Accept-Ranges: bytes

  ETag: W/"43-1499953570000"

  Last-Modified: Thu, 13 Jul 2017 13:46:10 GMT

  Content-Type: text/html       -----> the MIME type which the server send to the client.  

  Content-Length: 43        -----> tell the client the text's length 

  Date: Fri, 14 Jul 2017 14:52:58 GMT

  Refresh:1                    -----> refresh the page per sceond.

  Location:http://www.it315org/index.jsp      -----> forward to the new resource location.

  Content-Disposition: attachment;filename=aaa.zip                      -----> indicate the client to download the file.

  Set-Cookie:SS=Q0=5Lb_nQ;path=/search

  Expires:-1                                     ----->  the value=-1 means the page's cache will be destroied immediately.

  Cache-Control:no-cache(1.1)  -----> the page's cache will not exist.

  Pragma:no-cache(1.0)

  Connection:close/Keep-alive

  -----> there should reserve a blank row 

  <body>                ----
    <h1>Hello JavaWeb!</h1>       | ----> this is the response's entity content
  </body>                 ---- 

 

The GET method to submit data , the data will be put in the url address and start with "?" followed with the data and the data's value.

While the POST method to submit the data , the data will be put in the request enetity and the data's capacity is unlimited.

 

转载于:https://www.cnblogs.com/ppcoder/p/7183329.html

<think>我们正在解决Adams软件崩溃后生成.dmp文件的问题,并讨论如何向MSC技术支持提交问题。根据用户需求,重点在于:1.如何处理崩溃生成的.dmp文件2.如何向MSC技术支持提交详细信息注意:用户已经排除了之前回答中提到的引用,要求参考上一次的问题和回答。但用户本次问题明确指向.dmp文件和报告MSC技术支持。我们分两部分回答:第一部分:处理.dmp文件第二部分:向MSC技术支持报告问题同时,根据系统指令,注意数学表达式的格式要求。由于Adams崩溃生成的.dmp文件是Windows系统的内存转储文件,我们可以使用调试工具分析,但通常用户需要将其提交给MSC技术支持。步骤:1.定位.dmp文件2.使用调试工具(如WinDbg)进行初步分析(可选,但技术支持可能要求用户先尝试)3.收集其他必要信息(如日志文件、系统信息等)4.提交给MSC技术支持注意:在回答中,我们可能会提到一些命令或路径,这些需要按照LaTeX格式书写(行内用$...$,独立公式用$$...$$),但此处主要是文件和命令,可能涉及代码块。同时,生成相关问题。</think>### Adams软件崩溃后处理.dmp文件及提交MSC技术支持的完整指南 当Adams崩溃生成.dmp(内存转储)文件时,可按以下流程处理: --- #### **一、定位并分析.dmp文件** 1. **文件位置** - 默认路径:`C:\Users\<用户名>\AppData\Local\CrashDumps\` - 或Adams安装目录下的`\debug\`文件夹[^1] - 使用Windows搜索功能查找`*.dmp` 2. **初步分析工具** - **WinDbg**(Windows调试工具): ```powershell # 安装命令(管理员权限运行): winget install Microsoft.WinDbg ``` - 打开.dmp文件:`WinDbg -z <dmp文件路径>` - 输入命令:`!analyze -v` 获取崩溃线程和错误代码(如`$0xC0000005$`表示内存访问冲突) - **Visual Studio**: - 菜单 > 文件 > 打开 > 崩溃转储文件,查看调用堆栈 3. **关键信息提取** - 记录崩溃模块名(如`adams_car.dll`) - 检查错误代码格式: $$ \text{错误代码} = \text{错误类型} \times 16^{4} + \text{具体原因码} $$ 例如 `$0xC0000005$` = 访问冲突(`$C$`类) + 原因码`$5$`[^2] --- #### **二、收集必需信息提交MSC技术支持** 1. **核心文件清单** | 文件类型 | 路径/获取方式 | |----------------|----------------------------------------| | .dmp文件 | 崩溃自动生成(需完整文件) | | Adams日志 | `C:\ProgramData\MSC\Adams\<版本>\logs\` | | 系统信息 | 运行`msinfo32.exe` > 导出.nfo文件 | | 许可证状态 | 运行`lmutil lmstat -a -c <license.dat>` | 2. **提交步骤** 1. 访问MSC技术支持门户:**https://www.mscsoftware.com/support** 2. 创建新Case,上传以下压缩包内容: - .dmp文件(**必须**) - Adams日志文件(`*.log`) - `msinfo32.nfo`系统报告 - 重现崩溃的操作步骤文档 3. 附加信息: - Adams版本(如`Adams 2023.2`) - 崩溃前操作(如"运行含接触的模型") - 错误代码(从.dmp分析获得) --- #### **三、临时解决方案(提交前尝试)** 1. **清除缓存**:删除临时文件夹: ```powershell Remove-Item -Path "$env:LOCALAPPDATA\Temp\MSC\*" -Recurse -Force ``` 2. **兼容性模式**: - 右键Adams快捷方式 > 属性 > 兼容性 > 勾选"以Windows 7模式运行" 3. **禁用插件冲突**: - 启动时添加参数:`adams -no_plugins`[^3] --- #### **四、预防措施** 1. **启用自动崩溃报告**: - 修改Adams配置文件`prefs.xml`: ```xml <CrashReporting enable="true" upload="prompt"/> ``` 2. **监控资源使用**: - 任务管理器设置Adams进程优先级为**高** - 确保内存余量满足: $$ \text{可用RAM} > 1.5 \times \text{模型预估内存} $$ > **重要提示**:若.dmp文件超过100MB,需通过MSC的FTP上传(技术支持会提供链接)。提交后保留Case ID(格式如`$CS-XXXXX$`)以便追踪。 --- ###
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值