Does OpenNetworkConnection support proxies?

Just starting out? Need help? Post your questions and find answers here.
scriptmaster
User
User
Posts: 15
Joined: Fri Mar 13, 2009 3:13 pm
Location: Chennai, India

Does OpenNetworkConnection support proxies?

Post by scriptmaster »

Hello there PB Gurus,

About me: PB Newbie, VB6/C#/JavaScript/PHP expert, loves network programming.

I am developing a prototype that can connect to a PHP page that will send binary data back to the client. After a lot of research I chose PB because of its low binary footprint and speed. I would like to know a transparent way to connect to a URL (say: http://example.com/mypage.php) that would output a sample test message.

Requirements:
+ I need to be able to connect to a web page (HTTP). Should be scalable for HTTPs as well.
+ Need detection of Proxy and seamless support
+ Need cross-platform support

I started out with OpenNetworkConnection but don't know if I am going in the right path due to support for proxy. Any advanced, too-much-information-for-a-person code is fine (I love 'em).


Many thanks in advance!
Last edited by scriptmaster on Wed Mar 18, 2009 1:40 pm, edited 1 time in total.
scriptmaster
User
User
Posts: 15
Joined: Fri Mar 13, 2009 3:13 pm
Location: Chennai, India

Does OpenNetworkConnection support proxies?

Post by scriptmaster »

May be my question was not clearer to attract replies? :roll:

Here is a simpler version: Does OpenNetworkConnection or similar automatically support connections over HTTP/SOCKS proxies in the network?

I don't have a proxy to test, and all I have is localhost :P Which HTTP proxy do you folks think I should install and configure to test my code?
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

Proxy's are not directly supported ... but see http://www.purebasic.fr/english/viewtopic.php?t=13520 for more details and a sample :D
It's old code so you may have to adapt it to your PB version ... (maybe there is a more recent version somewhere... try the search with 'proxy' to find out more :wink: )
Post Reply