[Jprogramming] How to use a proxy?
bill lam
bbill.lam at gmail.com
Wed Jun 20 08:54:27 HKT 2007
I'm not sure why a firewall will dysfunction url resolution. However if you are
banned from certain websites by your corporation or isp, a proxy server may be a
solution.
0. google for a list of proxy server.
1. make a socket connection to a public proxy server, _not_ that local proxy
server currently banning you.
2. pass the whole url, including the url's server name, in the get command. eg
GET http://www.jsoftware.com/index.html
instead of
GET /index.html
Yuvaraj Athur Raghuvir wrote:
> Ok, this is what I know:
> 0) I am using the J socket
> 1) If there is a http proxy-server (e.g. behind a firewall), then the
> direct
> socket connection using sdconnect will fail since the url cannot be
> resolved.
> 2) This, I believe, means that in my J program, I need to establish a
> connection to the local http proxy server first and then ask the proxy
> server to connect to the web site of interest.
>
> Am I right so far?
>
> 3) So, I see the connection to the external world of two steps
> a) connect to proxy-server first
> b) pass the url to the proxy-server to resolve on my behalf
> c) establish the transparency between the J Client - Proxy & Proxy -
> External URL for further request-response cycles.
>
> So, using plain J socket api's how do I establish this? Is this part of the
> request? Or is it part of the connection mechanism?
>
> More specifically:
> The scripts I was referring to are from Oleg (httpget - from Wiki) and Raul
> (httpGet - from forum archives). I want to tweak the given
> implementation to
> use http proxy server on the client side.
>
>
> Regards,
> Yuva
--
regards,
bill
More information about the Programming
mailing list