FrontPage RPC, PutDocument causing HTTP Protocol Violation
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
FrontPage RPC, PutDocument causing HTTP Protocol Violation

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Loke Kit Kai [MVP]
Guest





Posted: Wed Nov 02, 2005 9:51 am    Post subject: FrontPage RPC, PutDocument causing HTTP Protocol Violation Reply with quote

I'm trying to put a document into a site whose url is
http://spsv2/sites/repository/sharepoint/shared documents

So I send a HttpRequest to
http://spsv2/sites/repository/sharepoint/_vti_bin/_vti_aut/author.dll wth
the following command
"method=put
document&document=[document_name=Shared+Documents%2fSmaller+Sample+1.doc;meta_info=[Test.txt;]]\nBinary
Content"

Without looking at the code, anyone knows what might be the cause for "The
underlying connection was closed: The server committed an HTTP protocol
violation."?
Back to top
JOPX
Guest





Posted: Wed Nov 02, 2005 9:51 pm    Post subject: RE: FrontPage RPC, PutDocument causing HTTP Protocol Violati Reply with quote

Just take a look at the code in the SharePad application on Gotdotnet. I
think you have to encode the URL (because of the space) but I'm not sure,

greetings,

Joris

http://jopx.blogspot.com

"Loke Kit Kai [MVP]" wrote:

Quote:
I'm trying to put a document into a site whose url is
http://spsv2/sites/repository/sharepoint/shared documents

So I send a HttpRequest to
http://spsv2/sites/repository/sharepoint/_vti_bin/_vti_aut/author.dll wth
the following command
"method=put
document&document=[document_name=Shared+Documents%2fSmaller+Sample+1.doc;meta_info=[Test.txt;]]\nBinary
Content"

Without looking at the code, anyone knows what might be the cause for "The
underlying connection was closed: The server committed an HTTP protocol
violation."?


Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Thu Nov 03, 2005 9:51 am    Post subject: RE: FrontPage RPC, PutDocument causing HTTP Protocol Violati Reply with quote

Hi KitKai,

I assume you are using the .Net code to send the Frontpage RPC request.
Generally speaking, the .Net application may think the request unsafe and
then throw this error. So we could add the following header information in
the config file to make .NET application permit this request.
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>

Please feel free to let me know if you have any further question on this
matter.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.
Back to top
Loke Kit Kai [MVP]
Guest





Posted: Tue Nov 08, 2005 9:51 am    Post subject: Re: FrontPage RPC, PutDocument causing HTTP Protocol Violati Reply with quote

Hi Wei-Dong,

Found out the error,
There is one part that you can specify the put_option. I intended to be
put_option=overwrite, but I accidently wrote put_option=override. The error
message is very misleading leh... :(

"Wei-Dong XU [MSFT]" <v-wdxu@online.microsoft.com> wrote in message
news:QRbeAbF4FHA.2984@TK2MSFTNGXA01.phx.gbl...
Quote:

Hi KitKai,

I assume you are using the .Net code to send the Frontpage RPC request.
Generally speaking, the .Net application may think the request unsafe and
then throw this error. So we could add the following header information in
the config file to make .NET application permit this request.
system.net
settings
httpWebRequest useUnsafeHeaderParsing="true" /
/settings

Please feel free to let me know if you have any further question on this
matter.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no
rights.
It is my pleasure to be of assistance.
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Tue Nov 08, 2005 9:51 am    Post subject: Re: FrontPage RPC, PutDocument causing HTTP Protocol Violati Reply with quote

Hi Kit kai,

Thanks for sharing your resolution to the community! This may be a great
help for others. :^)

Enjoy a nice day!

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB