第一阶段性复习

一、命令行复习

pwd   progress working dir
cd    change dir
mkdir make dir
touch 
echo "hi" > 1.txt
echo "hi" >> 1.txt
echo "hi" >! 1.txt
cp -r
rm -rf
mv
tree 
git init
git add
git commit -m "hi"
git pull
git push
git clone

curl -L http://baidu.com
curl -s -v -- http://baidu.com

ping qq.com

hexo init
hexo g
hexo server
hexo deploy

二、请求与响应

GET 请求

GET /?w=1 HTTP/1.1
Host: baidu.com
Accept: text/html

响应

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 10000

<!DOCTYPE>
<html>......</html>

POST 请求

POST /login?w=1 HTTP/1.1
Host: baidu.com
Accept: application/ms-word
Content-Type: application/x-www-form-urlencoded
Content-Length: 10

username=fangfang&password=mima

响应

HTTP/1.1 403 Forbidden
Content-Type: application/md-word
Content-Length: 200

word格式

猜你喜欢

转载自blog.csdn.net/wang_liuyong/article/details/81157072