- Go Web Scraping Quick Start Guide
- Vincent Smith
- 201字
- 2021-07-02 13:58:17
Query parameters
For some HTTP requests, extra information needs to be provided by the client in order to refine the request. This is usually done in two different ways. For HTTP GET requests, there is a defined way to include extra information in a request using the URL. Placing a ? at the end of a URL defines the end of the URL resource, and the next section defines query parameters. These parameters are key-value pairs defining the extra information sent to the server. The key value pairs are written as follows:
key1=value1&key2=value2&key3 ...
You will see this quite commonly when you are performing searches. As a hypothetical example, if you were on a site searching for shoes, you might encounter a paginated results page and the URL might look something like this:
https://buystuff.com/product_search?keyword=shoes&page=1
Notice that the resource is product_search, which is followed by the query parameters for the keyword and the page. This way, you can collect the products from all pages by adjusting the query.
- 從區(qū)塊鏈到Web3:構(gòu)建未來互聯(lián)網(wǎng)生態(tài)
- Spring Cloud微服務(wù)架構(gòu)進(jìn)階
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(實踐篇)
- Mastering JavaFX 10
- 城市治理一網(wǎng)統(tǒng)管
- 物聯(lián)網(wǎng)之霧:基于霧計算的智能硬件快速反應(yīng)與安全控制
- 深入理解Nginx:模塊開發(fā)與架構(gòu)解析
- 云工廠:開啟中國制造云時代
- 園區(qū)網(wǎng)絡(luò)架構(gòu)與技術(shù)
- Guide to NoSQL with Azure Cosmos DB
- 物聯(lián)網(wǎng)
- 現(xiàn)場綜合化網(wǎng)絡(luò)運營與維護(hù):運營商數(shù)字化轉(zhuǎn)型技術(shù)與實踐
- 走近奇妙的物聯(lián)網(wǎng)
- 加密與解密實戰(zhàn)全攻略
- Microsoft System Center 2012 Configuration Manager:Administration Cookbook