- 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.
- Application Development with Qt Creator(Second Edition)
- 物聯(lián)網(wǎng)安全:理論、實(shí)踐與創(chuàng)新
- Drush User’s Guide
- 2018網(wǎng)信發(fā)展報(bào)告
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)
- Spring 5.0 Projects
- 物聯(lián)網(wǎng)長(zhǎng)距離無線通信技術(shù)應(yīng)用與開發(fā)
- 夢(mèng)工廠之材質(zhì)N次方:Maya材質(zhì)手冊(cè)
- 網(wǎng)絡(luò)設(shè)計(jì)與應(yīng)用(第2版)
- jQuery Mobile Web Development Essentials
- 網(wǎng)絡(luò)AI+:2030后的未來網(wǎng)絡(luò)
- 網(wǎng)絡(luò)綜合布線(第2版)
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- Hands-On Docker for Microservices with Python
- Laravel Application Development Cookbook