User Tools

Site Tools


ubuntu: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
ubuntu:curl:reading_a_url_with_variable_get_parameters [2020/07/15 09:30] – external edit 127.0.0.1ubuntu:curl:reading_a_url_with_variable_get_parameters [2020/09/25 13:05] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== Ubuntu - Curl - Reading URL with variable GET parameters ====== 
- 
-For example take the following url: 
- 
-<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. 
  
ubuntu/curl/reading_a_url_with_variable_get_parameters.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki