diff --git a/examples/get.php b/examples/get.php new file mode 100644 index 0000000..2e41f87 --- /dev/null +++ b/examples/get.php @@ -0,0 +1,12 @@ +get('https://httpbin.org/get', array( + 'page' => $i, + )); + // TODO: Do something with result $curl->response. +} diff --git a/examples/get_base_url_1.php b/examples/get_base_url_1.php new file mode 100644 index 0000000..2b51da8 --- /dev/null +++ b/examples/get_base_url_1.php @@ -0,0 +1,12 @@ +get(array( + 'page' => $i, + )); + // TODO: Do something with result $curl->response. +} diff --git a/examples/get_base_url_2.php b/examples/get_base_url_2.php new file mode 100644 index 0000000..58fc376 --- /dev/null +++ b/examples/get_base_url_2.php @@ -0,0 +1,13 @@ +setUrl('https://httpbin.org/get'); +for ($i = 1; $i <= 10; $i++) { + $curl->get(array( + 'page' => $i, + )); + // TODO: Do something with result $curl->response. +}