Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leblanc-simon/openphptorcurl
https://github.com/leblanc-simon/openphptorcurl
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leblanc-simon/openphptorcurl
- Owner: leblanc-simon
- Created: 2012-09-06T01:40:21.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-06T01:41:02.000Z (about 12 years ago)
- Last Synced: 2023-03-12T00:22:55.254Z (over 1 year ago)
- Language: PHP
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenPHPTorCurl
It's a class to call URL via Tor
# Example
```php
$browser = new OpenPHPTorCurl\Browser();
$browser->setUrl('http://www.example.com')
->add('first_param', 'value')
->addFile('file', '/home/my-file.txt')
->setUserAgent('firefox');
if ($browser->post() === false) {
$browser->getError();
} else {
$browser->getStatusCode();
$browser->getHeaders();
$browser->getContent();
}
```# Todo
* allow to use cookies
* allow to use custom HTTP method
* check if Tor run
* method to check your IP address
* SSL support# Caution
Tor must run when you call script
# License
[Do What The Fuck You Want To Public License](http://sam.zoy.org/wtfpl/COPYING)