User Tools

Site Tools


curl:reading_a_url_with_variable_get_parameters

Curl - Reading URL with variable GET parameters

http://example.com/pages.php?pageNo=35

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.

curl -o pages#1.html http://example.com/pages.php?pageNo=[1-12]

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.txt · Last modified: 2020/09/25 14:06 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki