-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
33 lines (29 loc) · 1.02 KB
/
config.php
File metadata and controls
33 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
//sleep(4);
$urlTarget = 'http://localhost:7001/target.php?msg=';
$urlDispatcher = 'http://localhost:7002/dispatcher.php';
$urlEndpoint1 = 'http://localhost:7010/endpoint.php';
$urlEndpoint2 = 'http://localhost:7020/endpoint.php?whatever';
$proxies = [
$urlEndpoint1 => [],
$urlEndpoint2 => [],
];
$request = new Solcloud\Http\Request();
$request
->setMethod('GET')
->setRequestTimeoutSec(4)
->setConnectionTimeoutSec(4)
->setVerifyHost(false)
->setVerifyPeer(false)
->setHeaders([
'Accept-Language: cs,en-US;q=0.7,en;q=0.3',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
])
->setFollowLocation(true)
//->setOutgoingIp('25.25.25.25')
//->setPostFields(['a' => 1, 'dfas' => 'dsadf'])
->setReferer('http://localhost/referer')
->setUserAgent('Mozilla/5.0 (Windows NT 6.3; WOW64; rv:3.6.1) Gecko/20100101 Firefox/3.6')
;
$requestDownloader = new \Solcloud\Curl\CurlRequest();
//$requestDownloader->setProxyAddress('127.0.0.1:8080');