File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ Javascript is optionally executed if you need it. Essentially it's slower than j
2424
2525### Free proxy lists
2626
27- ### Inside browser
27+ ### 1. Inside browser
2828[ ** Link to free proxy list** ] ( http://public.proxyrequest.ru/api/proxyget/free " Click link to see ")
2929
30- #### Curl example for getting free proxy lists :
30+ ####2 . Using curl :
3131` curl http://public.proxyrequest.ru/api/proxyget/free `
3232
33- #### PHP getting free proxy lists :
33+ #### 3. PHP composer package :
3434Run first composer command in your shell:
3535` composer require gorlovka/proxy-request-builder `
3636``` php
@@ -44,7 +44,31 @@ echo $proxyRequestGet->sendRequest();
4444See TestProxyGet.php file for example.
4545
4646------------
47+ ### Rotating proxy
48+ ###1 . Inside browser
49+ [ Link to url] ( http:/public.proxyrequest.ru/api/rotate/PRIVATE_TOKEN?urlToGet=http://ar61.ru " Link to url ")
4750
51+ ###2 . Using curl
52+ ` bash tests/TestCurlRotateProxy.sh `
53+
54+ ###3 . PHP composer package
55+ Run first composer command in your shell:
56+ ` composer require gorlovka/proxy-request-builder `
57+ ``` php
58+ <?php
59+
60+ use Proxyrequest\ProxyRequestRotate;
61+
62+ $proxyRequestRotate = new ProxyRequestRotate('URL_TO_GET', 'PRIVATE_TOKEN_KEY_HERE');
63+ /***
64+ * To be called to use private server instead of public by default
65+ */
66+ // $proxyRequestRotate->setServer('');
67+
68+ echo $proxyRequestRotate->sendRequest();
69+ ```
70+
71+ [ Link to url] ( http:/public.proxyrequest.ru/api/rotate/PRIVATE_TOKEN?urlToGet=http://ar61.ru " Link to url ")
4872
4973
5074
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ URL_TO_GET=`base64 <<< ${2:-'http://testpage.proxyrequest.ru/iamatestpage.html'}
55
66SERVER_ADDRESS=${3:- ' http://public.proxyrequest.ru' }
77
8- echo curl -X GET \
8+ curl -X GET \
99 " ${SERVER_ADDRESS} /api/rotate/${TOKEN} ?urlToGet=${URL_TO_GET} " \
1010 -H ' Content-Type: application/json'
Original file line number Diff line number Diff line change 77/**
88 * Usage example
99 */
10- $ proxyRequestRotate = new ProxyRequestRotate ('http:// ' , 'example_of_token_BGFkldfc6gbds456gSmg5nghs79hSmndsF375sd0H4866 ' );
10+ $ proxyRequestRotate = new ProxyRequestRotate ('http://ar61.ru ' , 'PRIVATE_TOKEN_KEY_HERE ' );
1111/***
12- * To be called to use private server
12+ * To be called to use private server instead of public by default
1313 */
1414// $proxyRequestRotate->setServer('');
1515
You can’t perform that action at this time.
0 commit comments