Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢昇
test
Commits
2f8419cf
Commit
2f8419cf
authored
Mar 13, 2019
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jmeter进行WebSocket接口测试.md
parent
9fa74878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
Jmeter进行WebSocket接口测试.md
img-folder/刘锐/Jmeter进行WebSocket接口测试.md
+17
-3
No files found.
img-folder/刘锐/Jmeter进行WebSocket接口测试.md
View file @
2f8419cf
# Web
Socket原理
# Web
Socket原理
...
@@ -34,4 +34,18 @@ WebSocket在建立握手时,数据是通过HTTP传输的。但是建立之后
...
@@ -34,4 +34,18 @@ WebSocket在建立握手时,数据是通过HTTP传输的。但是建立之后
我们准备好这些jar包后,讲它们拷贝到Jmeter目录的
\l
ib
\e
xt
\目
录下。
我们准备好这些jar包后,讲它们拷贝到Jmeter目录的
\l
ib
\e
xt
\目
录下。




\ No newline at end of file
# 聊天室项目WebSocket接口测试
## 普及知识
1.
cookie:
网站中,http请求是无状态的,即使第一次和服务器连接后并且登录成功后,第二次请求服务器依然不能知道当前请求是哪个用户。cookie的出现就是为了解决这个问题,第一次登录后服务器返回一些数据(cookie)给浏览器,然后浏览器保存在本地,当该用户发送第二次请求的时候,就会自动的把上次请求存储的cookie数据自动的携带给服务器,服务器通过浏览器携带的数据就能判断当前用户是哪个了。cookie存储的数据量有限,但一般不超过4KB。因此使用cookie只能存储一些小量的数据。
2.
session:
session和cookie的作用有点类似,都是为了存储用户相关的信息。不同的是session存储在服务器。存储在服务器的数据会更加的安全,不容易被窃取,弊端就是会占用服务器的资源。







\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment