Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

HttpWebRequest and Request.form validation error.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fedrok - 20 Feb 2007 15:40 GMT
Hi!
I've got a problem with HttpWebRequet class.
I've to make a POST http sendind a data stream.
This data stream contains some "<" characters and so I get an internal
server error 500 described as this:

A potentially dangerous Request.Form value was detected from the client...

How can I disable the validation?
I'm not using an asp.NET page, but a console application, so I can't use the
declaration
validateRequest = "false" in '<@Page >' directive.

Any suggestions?

Thx!

Signature

fedrok

Joerg Jooss - 20 Feb 2007 16:01 GMT
Thus wrote fedrok,

> Hi!
> I've got a problem with HttpWebRequet class.
[quoted text clipped - 5 lines]
>
> How can I disable the validation?

Disable it on the server-side or don't post hazardous content, i.e. HTML-encode
your content.

Cheers,
Signature

Joerg Jooss
news-reply@joergjooss.d

fedrok - 20 Feb 2007 16:15 GMT
The problem wasn't in the sender procedure!
But in the remote responder!!!!
I've added the ValidateRequest attribute in the <@Page> directive, and all
works!!!!

Thx!
Signature

fedrok

> Hi!
> I've got a problem with HttpWebRequet class.
[quoted text clipped - 12 lines]
>
> Thx!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.