This library allows to browse HTTP using PHP with no additional extensions like cURL. It consists of a single file (websock2.php), which you can add to your project to make all its classes available for use.
Features:
- HTTP(S) serfing
- File uploads (including very large files support)
- Cookies
- Automatic HTTP redirection
- Automatic Referer
- HTTP basic and digest authentication
- HTTP/1.0 and 1.1, chunked content, gzipped/deflated content support
- Proxy support:
- HTTP(S)
- SOCKS4
- SOCKS4a
- SOCKS5
- Proxy authentication support
- Proxy chaining support
- Timeouts
- Two sockets implementations with different features
- Advanced features:
- Redirection interception
- Full control of reading host response
- Great scalability and control
Copyright (c) DX, kaimi.ru, coder.pub