Hi Sham,
The MSXML library (like IE) makes use of the URLMoniker functions of
Windows. This means that all the config settings are consolidated in
the Internet Options dialog.
It does not matter whether your request comes from MSXML or IE, the
request will always take the same path. If IE can correctly access
your proxy server, the so will MSXML. There are no special settings
for MSXML.
Also, please note that once a process (like IE) has been
authenticated by your proxy server, then all other requests from
within that process will share that authentication info.
Lastly, Fiddler is a very usefull tool and I use it all the time,
but it can sometime mess around with you. Fiddler will effectively
take over all requests and then fake a response back to you. Fiddler
is also unable to log requests that were returned from IE's cache.
I am currently working on a web scope that overcomes the limitations
of Fiddler. It is not ready for release yet, but you can check my
web site http://www.alfega.com for more info.
Francois Rautenbach
--- In delphi-webbrowser@yahoogroups.com, "shamresh1"
<shamresh1@...> wrote:
>
> Basically, I have a xml document and an xslt document that I load
via
> MSXML dom (msxml2_tlb), which applies the xslt transformation to
the
> xml document. The xml document has a number of nodes that have url
> request strings in and the xslt document uses the 'document()' xslt
> syntax to make http requests to get the urls and the does some
> transformations on the data it has retrieved.
>
> What I found is that if we have a proxy server with authentication
> (username and password), the MSXML dom code bypasses it.
>
> What we need is to work out how to set the proxy settings in code
and
> to ensure that when we apply the transformation it uses those proxy
> settings.
>
> For testing we have set up fiddler2 and set the require
authentication
> option (username and password are 1, and 1) and MSXML dom simply
does
> not use it. Careful that fiddler2 sets IE settings to use the proxy
> server so you may have to disable the flag in
> options->connections->Lan Settings.
>
> I tried using the wininet InternetSetOptions() api but for username
> and password settings I need to provide a resource handle which
> according to msdn is a web page (via httpOpenRequest). Since we are
> using MSXML dom, we do not have access to any sort of handle.
>
> I have an application that does the transformation that I can
provide.
>
> Regards
> Sham.
>
> Ps. I have posted explanations to the delphi.xml newsgroup but have
> not had too much help.
>