curl:reading_a_url_with_variable_get_parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
curl:reading_a_url_with_variable_get_parameters [2019/11/27 00:13] – removed petercurl:reading_a_url_with_variable_get_parameters [2020/09/25 13:06] (current) – created 192.168.1.1
Line 1: Line 1:
 +====== Curl - Reading URL with variable GET parameters ======
 +
 +<code bash>
 +http://example.com/pages.php?pageNo=35
 +</code>
 +
 +The variable here is the **pageNo** parameter.
 +
 +You can download all the pages by adding a regular expression like parameter in the CURL url as given below.
 +
 +<code bash>
 +curl -o pages#1.html http://example.com/pages.php?pageNo=[1-12]
 +</code>
 +
 +This will download all the pages from page no 1 to page no 12 and save it to a corresponding file.
  
curl/reading_a_url_with_variable_get_parameters.1574813635.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki