Re: Simple readXML which requires authentication
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 15:02:20 +0000 (UTC)
Hi,
no you can't.
I am not sure if you have access to the underlying WebRequest in a DataSet - but you could first read the xml using HttpWebRequest (which supports supplying credentials) and then pass the XML to the DataSet....
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi, I have a web application which gets data from clients via XML. Up
to now I used the DataSet.readXML("http://xmlURL.xml") to get and
parse xml content into my database.
Now one of my clients has placed his XML on a server that requires
authentication and has provided the username and password.
I tried the following: http://<username>:<password>@ xmlURL.xml
It works if I enter the above in Firefox for example
It doesn't work though in neither of those:
IE 6 and programmatically via the application (which uses
DataSet.readXML ("http://<username>:<password>@ xmlURL.xml")).
In IE I get a file not found error, And in the application run I get a
401 unauthorized error.
My questions are:
Can I use the simple (I suppose insecure way)
http://<username>:<password>@... by maybe changing the application
configuration?
What other options do I have?
Thanks in advance, Albert
.
- References:
- Simple readXML which requires authentication
- From: Albert
- Simple readXML which requires authentication
- Prev by Date: Simple readXML which requires authentication
- Next by Date: Re: AspCrypt using .NET framework?
- Previous by thread: Simple readXML which requires authentication
- Next by thread: Re: Simple readXML which requires authentication
- Index(es):
Relevant Pages
|
|