Discussion:
Newbie proxy questions
(too old to reply)
Jack
2007-10-25 20:26:58 UTC
Permalink
Hi,

I've written a win32 C++ app which connects via wininet. Everything works
fine.
The further complication is the app runs on win CE (PPC & SP).

Now I've gotten to to thinking about proxies which I don't really
understand.

If the user set up the phone to use proxies in say PIE, then connects to the
proxy, I then boot up my app and my app connects with

hInternet= InternetOpen(lpszAgent, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL,
0);

will the app connect via the proxy by default?

What happes if I'm connecting through wi-fi or the cellular network
(GPSS/HSDPA)?

What will the connection look like to the Web Site the app is browsing? Will
it be from the proxy or from the telecom providers servers?

Sorry if the questions are vague. Any pointers appreciated.
Vladimir Scherbina
2007-10-28 15:05:02 UTC
Permalink
Hi,
Post by Jack
Hi,
[...]
Post by Jack
If the user set up the phone to use proxies in say PIE, then connects to the
proxy, I then boot up my app and my app connects with
hInternet= InternetOpen(lpszAgent, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL,
0);
will the app connect via the proxy by default?
It depends upon your configuration, if you specify to use proxy (in IE) then
the proxy will be used.
Post by Jack
What happes if I'm connecting through wi-fi or the cellular network
(GPSS/HSDPA)?
The same, wi-fi connection will be used to redirect packets to specified
proxy server.
Post by Jack
What will the connection look like to the Web Site the app is browsing? Will
it be from the proxy or from the telecom providers servers?
Again, it depens upon what connection layer is used. If wi-fi, then web
sites "will see" the IP of proxy.
--
--Vladimir
Jack
2007-10-31 14:11:47 UTC
Permalink
Post by Vladimir Scherbina
Hi,
Post by Jack
Hi,
[...]
Post by Jack
If the user set up the phone to use proxies in say PIE, then connects to the
proxy, I then boot up my app and my app connects with
hInternet= InternetOpen(lpszAgent, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL,
0);
will the app connect via the proxy by default?
It depends upon your configuration, if you specify to use proxy (in IE)
then the proxy will be used.
Thanks for the response.

One further thing. If the proxy requires a password and the user sets
up/logs in via PIE can I still use the default connection as before?

I have a mountain of things to do and if I can just ignore the proxy in my
program, if it is included"automatically", it is one less thing to worry
about.

Thanks for any info.

Continue reading on narkive:
Loading...