http protocol violation when webrequest in sqlfunction, thanks
"The server committed a protocol violation", I found out this is because the url returns something 2.0 think is not standard, the solution is turn on useUnsafeHeaderParsing, so I add the below to my machine.config
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing = "true" />
</settings>
</system.net>
but after I add that, I got different error when I call the function :
The type initializer for 'System.Net.Configuration.SettingsSectionInternal' threw an exception.
Any idea?
thanks!

