Board index » delphi » Indy HTTP Client/WebBroker App/Proxy Problem

Indy HTTP Client/WebBroker App/Proxy Problem

We have a simple web application written in Delphi5 that we are (trying) to
access from a service (written in Delphi5) using the Indy HTTP client
component. Everything works fine at work (where we have no proxy server
between the service and the web app but at the customer site their proxy
server is prevent a connection from the Indy HTTP client component and the
web application. Internet Explorer can connect since the current default
action just servers up a web page identifying the service. So if IE can
connect through the proxy it seems that the Indy HTTP client component
should be able to if I can get it setup correctly.

Where can I go to find out what changes I need to make in the use of the
Indy HTTP client component to get it to connect through a proxy server?

Regards, Frederick C. Wilt

 

Re:Indy HTTP Client/WebBroker App/Proxy Problem


Is IE using a static proxy server port config (i.e. is the proxy and
port set in Tools->Internet Options->Connections Tab-> LAN Setting) or
does it using auto configuration.

If your client uses a known proxy server than you are in luck. You can
pluck these settings from the registry. See
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings

If yourclient uses auto config, then you are out of luck as the only
way of getting the proxy server to be used when accesses a certain URL
is only known to the client once a .pac file has been retrieved from
the auto config URL and parsed.

The function to do this has only been recently documented on MSDN, but
no-one on this list has been able to assist me in getting the function
call to work.

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wini...

"Frederick C. Wilt" <fcw...@mindspring.com> wrote in message <news:3df3838f@newsgroups.borland.com>...

Quote
> We have a simple web application written in Delphi5 that we are (trying) to
> access from a service (written in Delphi5) using the Indy HTTP client
> component. Everything works fine at work (where we have no proxy server
> between the service and the web app but at the customer site their proxy
> server is prevent a connection from the Indy HTTP client component and the
> web application. Internet Explorer can connect since the current default
> action just servers up a web page identifying the service. So if IE can
> connect through the proxy it seems that the Indy HTTP client component
> should be able to if I can get it setup correctly.

> Where can I go to find out what changes I need to make in the use of the
> Indy HTTP client component to get it to connect through a proxy server?

> Regards, Frederick C. Wilt

Re:Indy HTTP Client/WebBroker App/Proxy Problem


and we must assume that you actually implemented the example from MS in delphi ?
i can only assume that you must be over looking something in the C++ to DElphi translation.
  i am not on a Proxy here do i don't have an  access to one to test with  so it would be reduntant
for me to convert it for you.
Quote
Michael O'Reilly wrote:
> Is IE using a static proxy server port config (i.e. is the proxy and
> port set in Tools->Internet Options->Connections Tab-> LAN Setting) or
> does it using auto configuration.

> If your client uses a known proxy server than you are in luck. You can
> pluck these settings from the registry. See
> HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings

> If yourclient uses auto config, then you are out of luck as the only
> way of getting the proxy server to be used when accesses a certain URL
> is only known to the client once a .pac file has been retrieved from
> the auto config URL and parsed.

> The function to do this has only been recently documented on MSDN, but
> no-one on this list has been able to assist me in getting the function
> call to work.

> See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wini...

> "Frederick C. Wilt" <fcw...@mindspring.com> wrote in message <news:3df3838f@newsgroups.borland.com>...
> > We have a simple web application written in Delphi5 that we are (trying) to
> > access from a service (written in Delphi5) using the Indy HTTP client
> > component. Everything works fine at work (where we have no proxy server
> > between the service and the web app but at the customer site their proxy
> > server is prevent a connection from the Indy HTTP client component and the
> > web application. Internet Explorer can connect since the current default
> > action just servers up a web page identifying the service. So if IE can
> > connect through the proxy it seems that the Indy HTTP client component
> > should be able to if I can get it setup correctly.

> > Where can I go to find out what changes I need to make in the use of the
> > Indy HTTP client component to get it to connect through a proxy server?

> > Regards, Frederick C. Wilt

Re:Indy HTTP Client/WebBroker App/Proxy Problem


Quote
Maynard Philbrook <jami...@mindspring.com> wrote in message <news:3DF61089.10202DA3@mindspring.com>...
> and we must assume that you actually implemented the example from MS in delphi ?
> i can only assume that you must be over looking something in the C++ to DElphi translation.

I know for a fact that I'm declaring one of the parameters
incorrectly. It's a LPSTR* which I thought would be a Pchar^ but
Delphi does not like that at all.

Also, C++ programmers have complained to Microsoft that the recently
disclosed functions do not work correctly with the documented
parameters.

Regards
Michael O'Reilly

Quote
>   i am not on a Proxy here do i don't have an  access to one to test with  so it would be reduntant
> for me to convert it for you.

> Michael O'Reilly wrote:

> > Is IE using a static proxy server port config (i.e. is the proxy and
> > port set in Tools->Internet Options->Connections Tab-> LAN Setting) or
> > does it using auto configuration.

> > If your client uses a known proxy server than you are in luck. You can
> > pluck these settings from the registry. See
> > HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings

> > If yourclient uses auto config, then you are out of luck as the only
> > way of getting the proxy server to be used when accesses a certain URL
> > is only known to the client once a .pac file has been retrieved from
> > the auto config URL and parsed.

> > The function to do this has only been recently documented on MSDN, but
> > no-one on this list has been able to assist me in getting the function
> > call to work.

> > See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wini...

> > "Frederick C. Wilt" <fcw...@mindspring.com> wrote in message <news:3df3838f@newsgroups.borland.com>...
> > > We have a simple web application written in Delphi5 that we are (trying) to
> > > access from a service (written in Delphi5) using the Indy HTTP client
> > > component. Everything works fine at work (where we have no proxy server
> > > between the service and the web app but at the customer site their proxy
> > > server is prevent a connection from the Indy HTTP client component and the
> > > web application. Internet Explorer can connect since the current default
> > > action just servers up a web page identifying the service. So if IE can
> > > connect through the proxy it seems that the Indy HTTP client component
> > > should be able to if I can get it setup correctly.

> > > Where can I go to find out what changes I need to make in the use of the
> > > Indy HTTP client component to get it to connect through a proxy server?

> > > Regards, Frederick C. Wilt

Other Threads