Search the web
Sign In
New User? Sign Up
delphi-webbrowser · Delphi: Using IE's WebBrowser
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Proxy authentication with MSXML dom and XSLT   Message List  
Reply | Forward Message #10231 of 10267 |
Re: Proxy authentication with MSXML dom and XSLT

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.
>





Tue Oct 28, 2008 4:47 am

goligoza
Offline Offline
Send Email Send Email

Forward
Message #10231 of 10267 |
Expand Messages Author Sort by Date

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...
shamresh1
Offline Send Email
Sep 17, 2008
5:49 am

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...
goligoza
Offline Send Email
Oct 28, 2008
4:47 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help