473,395 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

useUnsafeHeaderParsing (KB 888527)

Hello,

Based on the information provided by
http://support.microsoft.com/?kbid=KB888527

one should be able to add a useUnsafeHeaderParsing attribute to the
<httpWebRequest> element in the Machine.config file on a .NET 1.0 SP3
machine.

I have .NET 1.0 SP3, but when I add this attribute using the syntax (exactly
as shown in the KB):

<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing = "true"/>
</settings>
</system.net>

to either the machine.config or to the app.config file, I receive an
Exception that says that an invalid configuration was found.

What can I do?

Thanks,
Arsen
Nov 16 '05 #1
5 5137
Hi Arsen,

Thanks for your posting. Regarding on the problem you mentioned, I've also
performed the test on my local XP SP2 machine and did encounter the same
problem.

Currently I'm consulting those CLR guys to see whether there is any
existing issue on this. I'll update you if I got any updates. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 16 '05 #2
Hi Steven,

Thanks for the follow up.

Please let me know what you find.

We need to be able to ignore the malformed headers in our
multi-threaded/asynchrounous crawler since there a a lot of websites out
there that send headers with an error and work perfectly fine in IE,
Netscape, Firefox, Opera, etc. BUT error out with HttpWebRequest.

Thanks again,
Arsen

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:8$****************@cpmsftngxa10.phx.gbl...
Hi Arsen,

Thanks for your posting. Regarding on the problem you mentioned, I've also
performed the test on my local XP SP2 machine and did encounter the same
problem.

Currently I'm consulting those CLR guys to see whether there is any
existing issue on this. I'll update you if I got any updates. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 16 '05 #3
Hi Arsen,

Sorry for keeping you waiting. After some further research, it seems that
by default after our .net 1.0 framework installed sp3, the new <settings>
configure element is available in machine.config, however, we still need to
add the section handler for it , so please have a check at the following
item:

whether your 1.0 's machine.config is missing the settings section handler
declaration. If so, add this line

<section name="settings"
type="System.Net.Configuration.NetConfigurationHan dler, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

to the <configSections> <sectionGroup name=ˇ±system.netˇ±> section at the
top.

Also, our dev guys has also decided to add this to kb so that other ones
may find it easily without such ambiguous error. Hope helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 16 '05 #4
This fixed the problem.

Thanks Steven.

Regards,
Arsen
Nov 16 '05 #5
You're welcome Arsen,

Thanks again for your posting.
Good Luck!

Regards,

Steven Cheng
Microsoft Online Support

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Q | last post by:
I am feeding XmlTextReader a URL that returns the XML that then gets parsed. The URL forms a query that affects how much data is returned in XML but not the format of the data. The problem is...
1
by: Harry Keck | last post by:
I am calling XmlDocument.Load with a url string, but get the message "The underlying connection was closed: Unable to connect to the remote server." When I put the exact same URL in IE, the xml...
1
by: Arsen V. | last post by:
Hello, Based on the information provided by http://support.microsoft.com/?kbid=KB888527 one should be able to add a useUnsafeHeaderParsing attribute to the <httpWebRequest> element in the...
1
by: ludovic | last post by:
Hi, I have a problem using .NET 1.1 SP1. When I access my web server, on most laptop, I have to set in the config file the useUnsafeHeaderParsing=true in order to avoid a http violation error....
2
by: Steve Richter | last post by:
I have a page that uses simple HTTP GET to do an ISBN lookup via Amazon.com. The page works when I run it from //localhost. But I have moved it to my godaddy.com shared hoster site, and I get...
2
by: MikeZ | last post by:
I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a VS2003 project. I got HTTP violation exception on some of the machine. So I did the research, and found to put...
1
by: MikeZ | last post by:
I post this question last week, no good answer, so I post again. Sorry about this. I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a VS2003 project. I got HTTP violation...
7
by: Tom | last post by:
Hello all: I have a method that does a POST to a secured website using HttpWebRequest. It worked when logging in the site, but it failed with an HTTP prococol violation error when it is used to...
0
by: Howard | last post by:
I would like to use useUnsafeHeaderParsing=true in my app. So far it works by having an app.config file. I would like to have a single exe file and set this property in the source code. <?xml...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.