
HTTP的GET METHOD
此文完整連結 http://n.sfs.tw/m10714
複製連結 HTTP的GET METHOD@精讚(文章歡迎轉載,請尊重版權註明連結來源)
2021-02-10 22:35:07 By 張○○
因為常要測試網頁有沒有正常送出資料,所以得用原始的get方法(或post, header等方法)
以下範例取得 index.php?f=123
# telnet 211.75.194.243 80 <== 使用Telnet叫用
Trying 211.75.194.243...
Connected to 211.75.194.243.
Escape character is '^]'.
GET /index.php?f=123 HTTP/1.1
Host: n.sfs.tw
User-Agent: YaleCell/1.1 (Test20210210)
<<連按2下ENTER>>
伺服器的回應範例:
HTTP/1.1 200 OK
Date: Wed, 10 Feb 2021 13:40:01 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33
X-Powered-By: PHP/7.0.33
Set-Cookie: ci_sesssion=bdbce8a737bcf6fead598; path=/; HttpOnly
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Vary: Accept-Encoding
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
如果是post方法的話,參數另外加上去
Host: n.sfs.tw
User-Agent: YaleCell/1.1 (Test20210210)
p1=value1&p2=value2
輸入手速要快,否則會出現 408 Request Timeout 的錯誤
[相關連結]
https://www.w3schools.com/tags/ref_httpmethods.asp
HTTP的GET METHOD
使用http 的get 方法取得網頁資料
[Linux] wget 指定資料匣和wget 略過https的檢查
遇到失效的https網頁,wget無法抓檔,怎麼解決?
免費抓畫面軟體 Greenshot
明明Windows就已經有附畫面截取工具,為什麼還要推薦這個?
[PHP] 由於 scheme 不同,Cookie「_ga」在未來會被視為對XXX的跨網站 cookie
最近發現主控台出現這類的警告,很煩人…
[Mac] Forticlient 'Connection Error' '連接錯誤'
mac 筆電上的 forticlient突然不能連了,不知發生什麼事?
[PERL] 貪婪和不貪婪比對 non-greedy match
預設perl是貪婪比對,如果要取得不貪婪的比對,要怎麼做?