Click here to Skip to main content
14,392,596 members

.NET Framework

 
AnswerRe: Show Bitmap Handle to Picture Control Pin
prasad_som2-Mar-07 3:53
Memberprasad_som2-Mar-07 3:53 
QuestionWeb.config, Global.asax Pin
Kusal1-Mar-07 18:09
MemberKusal1-Mar-07 18:09 
AnswerRe: Web.config, Global.asax Pin
lgrabarevic5-Mar-07 0:54
Memberlgrabarevic5-Mar-07 0:54 
Questionrunning Appliaction on Pocket PC Pin
Blue_Boy1-Mar-07 5:46
MemberBlue_Boy1-Mar-07 5:46 
GeneralExtending XML Comments Pin
Brady Kelly1-Mar-07 3:22
MemberBrady Kelly1-Mar-07 3:22 
QuestionDataGridViewComboBoxColumn Data Error Pin
Hendrik Debedts1-Mar-07 2:07
MemberHendrik Debedts1-Mar-07 2:07 
QuestionHow manage assembly Pin
Salvodif1-Mar-07 1:13
MemberSalvodif1-Mar-07 1:13 
Questionexport to excel through asp page(not asp.net) Pin
mamatha_raghu1-Mar-07 0:38
Membermamatha_raghu1-Mar-07 0:38 
AnswerRe: export to excel through asp page(not asp.net) Pin
Scott Page8-Mar-07 0:07
professionalScott Page8-Mar-07 0:07 
Question3 tier architecture implementation in .net Pin
mamatha_raghu28-Feb-07 19:40
Membermamatha_raghu28-Feb-07 19:40 
AnswerRe: 3 tier architecture implementation in .net Pin
Obaid ur Rehman1-Mar-07 3:20
MemberObaid ur Rehman1-Mar-07 3:20 
GeneralRe: 3 tier architecture implementation in .net Pin
mamatha_raghu1-Mar-07 19:59
Membermamatha_raghu1-Mar-07 19:59 
QuestionInterface not Supported / Schnittstelle nicht unterstützt Pin
testy_proconsul28-Feb-07 1:34
Membertesty_proconsul28-Feb-07 1:34 
Questionhow i using sockets in smart devices? Pin
Agbaria Ahmad28-Feb-07 1:23
MemberAgbaria Ahmad28-Feb-07 1:23 
QuestionInvoking .NET from Native C Pin
novicedude27-Feb-07 20:51
Membernovicedude27-Feb-07 20:51 
AnswerRe: Invoking .NET from Native C Pin
Mike Dimmick28-Feb-07 1:39
MemberMike Dimmick28-Feb-07 1:39 
QuestionGetting WebBrowser cookies for HttpWebRequest Pin
jjholt27-Feb-07 13:57
Memberjjholt27-Feb-07 13:57 
QuestionDateTimePicker commercial replacements ? Pin
CAE27-Feb-07 13:20
MemberCAE27-Feb-07 13:20 
QuestionPlease help me Pin
Glen Liu27-Feb-07 13:09
MemberGlen Liu27-Feb-07 13:09 
GeneralWPF ActiveControl Equivalent Pin
Ed.Poore26-Feb-07 23:02
MemberEd.Poore26-Feb-07 23:02 
QuestionMTOM taking more time than base64 method Pin
shahzadgodil26-Feb-07 20:26
Membershahzadgodil26-Feb-07 20:26 
QuestionRemoting connection problem Pin
BobishKindaGuy26-Feb-07 14:41
MemberBobishKindaGuy26-Feb-07 14:41 
Questionforce feedback game graphics - please help Pin
men0aphw26-Feb-07 0:10
Membermen0aphw26-Feb-07 0:10 
QuestionHTTPS POST returning 100 Continue makes the WebClient throw protocol violation exception [modified] Pin
Corneliu Tusnea25-Feb-07 13:57
MemberCorneliu Tusnea25-Feb-07 13:57 
Hi,

I use a WebClient to post some data to a server. (.Net 2.0) The server returns back:

HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: …

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Content-Type: text/xml;charset=ISO-8859-1
Content-Length: 929

This is valid as per the RFC:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html[^]

As per the http specs this is a valid way of returning content and is generally used when the server requires more time to process and sends you a 100 Continue.

However from .Net I get the exception:

The server committed a protocol violation. Section=ResponseStatusLine

While processing the response. This seems to because the space in the headers is considered a possible security issue.

This is a bit of chicken and the egg. Header splitting is a security issue however 100 Continue + header splitting is valid as per the specs.
http://www.dotnet247.com/247reference/msgs/57/289086.aspx[^]

Now reading a bit more I found this nice comment on an MSDN blog:
http://blogs.msdn.com/david.wang/archive/2006/04/05/HTTP-SYS-IIS-and-the-100-continue.aspx[^]

Clients which advertise to be HTTP/1.1 compliant and then crash on "100 continue" are the real problem (they are not following public specifications)

The “fix” is to add a setting in the web config to disable the checking of split headers:
[...] httpWebRequest useUnsafeHeaderParsing="true" [...]

My problem is that Setting the flag in the config does not make any difference. Setting the flag using reflection does not help either. I still get the exception.

Setting the Enable100Continue property on the ServicePointManager or ServicePoint does not help either. I still get the exception.

Any help is welcome.

Thanks,
Corneliu.



-- modified at 19:17 Sunday 25th February, 2007

My.Team www.readify.net
My.Blog www.acorns.com.au
My.Tools Hawkeye - The .Net Runtime Object Editor - A developer's best tool.
My.Shop www.bestgames.com.au

QuestionStrongly named assemblies & 3rd-party COM/OCX Pin
Len Miller25-Feb-07 11:54
MemberLen Miller25-Feb-07 11:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.