DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 14:44:29 GMT,    posted on: microsoft.public.dotnet.xml        back       

Thread Index
  1    xml
          2    Martin Honnen


XmlResolver Host Headers   
(Apologies if this is not the right newsgroup - if so, please point me in
the correct direction.)

Can anybody tell me a way to set the host header value on a DTD request
through an XmlDocument object?
(I'm using the 1.1 Framework, VB.NET under ASP.NET)

I currently have 2 live systems down because of changes that my credit-card
processing provider has implemented.
When I load the XML string that the provider gives me (which includes a
reference to a DTD file on a particular server), I am receiving an error.
After talking to the techies at the provider, I've been told that the most
likely situation is that the host header is not being set on the DTD
request.

I cannot find any way of setting header details of the XmlResolver or
XmlUrlResolver objects.

(I'm also thinking of nulling the XmlResolver property of the XmlDocument to
stop it loading the DTD at all - however, I don't know what secondary
consequences that would have on the data)

Cheers,
Tom
Date:Wed, 22 Aug 2007 14:44:29 GMT   Author:  

Re: XmlResolver Host Headers   
xml wrote:


> Can anybody tell me a way to set the host header value on a DTD request
> through an XmlDocument object?
> (I'm using the 1.1 Framework, VB.NET under ASP.NET)


If you want to set HTTP headers then you need to use "lower level" APIs 
like HttpWebRequest. But even there the documentation on the Headers 
property says that 'Host' is not a header that can be set, rather it is 
set by the system itself: 
<URL:http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.headers(VS.71).aspx>



-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
Date:Wed, 22 Aug 2007 17:00:53 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us