Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/progerxp/downwind
Flexible remote HTTP requests using native PHP streams
https://github.com/progerxp/downwind
Last synced: about 2 months ago
JSON representation
Flexible remote HTTP requests using native PHP streams
- Host: GitHub
- URL: https://github.com/progerxp/downwind
- Owner: ProgerXP
- Created: 2015-03-17T11:31:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-17T11:37:35.000Z (almost 10 years ago)
- Last Synced: 2023-03-23T09:24:55.719Z (almost 2 years ago)
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Downwind
**Flexible remote HTTP requests using native PHP streams**Standalone unless you're doing `multipart/form-data` `upload()` - in this case
http://proger.i-forge.net/MiMeil class is necessary (see `encodeMultipartData()`).
Note that you'll need to not only `require()` it but also set up as described there.Released in public domain.
If you are going to use SOCKS proxying you will need **Phisocks** class from
https://github.com/ProgerXP/Phisocks (it's standalone and also in public domain).## Usage example
```PHP
$downwind = Downwind::make('http://google.com', array(
'Cookie' => 'test=test',
));$downwind->addQuery('q' => 'search-me');
$downwind->upload('filevar', 'original.txt', fopen('file.txt', 'r'));
$downwind->contextOptions['ignore_errors'] = 1;
$downwind->thruSocks('localhost', 1083);echo $downwind->fetchData();
```