Tag Archives | SOCKS

PHP: Using SOCKS4 with SSL connection – part 2

Part 1: PHP: Using SOCKS4 with SSL connection The solution is use function stream_socket_enable_crypto to turn encryption on an already connected socket: We change function fsocks4sockopen to the new Now we can grab data from a HTTPS page: Result: Here the code of http://demo/tutorialspots.com/sock/gate.php

Read full story Comments { 1 }
PHP CURL class support basic authorization, HTTP SOCKS5 proxy and much more

PHP CURL class support basic authorization, HTTP SOCKS5 proxy and much more

This is a useful class written by me and use it regularly. Features HTTPS connection Basic authorization, HTTP proxy SOCKS5 proxy Cookie jar and much more… For some usage, you can read more: PHP & CURL: step by step

Read full story Comments { 1 }
PHP: Using SOCKS4 with SSL connection

PHP: Using SOCKS4 with SSL connection

Please read first: PHP SOCKS4 Interface Try to grab data from a HTTPS page like: https://www.google.com we get a empty string string(0) “” or an error 400 Bad Request: string(526) “ 400 Bad Request Bad Request Your browser sent a request that this server could not understand. Reason: You’re speaking plain HTTP to an SSL-enabled […]

Read full story Comments { 1 }
PHP SOCKS4 Interface

PHP SOCKS4 Interface

SOCKS was originally developed by David Koblas and subsequently modified and extended by me to its current running version — version 4. It is a protocol that relays TCP sessions at a firewall host to allow application users transparent access across the firewall. Because the protocol is independent of application protocols, it can be (and […]

Read full story Comments { 1 }