Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

HTTP PUT Method and IIS

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Can IIS and RAS coexist on same server?  
Author Message
anonymous315

External


Since: Nov 04, 2003
Posts: 9



(Msg. 1) Posted: Wed Feb 25, 2004 5:31 pm
Post subject: HTTP PUT Method and IIS
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hello. To make use of the HTTP PUT method on IIS, do I need to configure or install anything special?

Thank you.

Ron Sochanski

 >> Stay informed about: HTTP PUT Method and IIS 
Back to top
Login to vote
netmongrel

External


Since: Feb 03, 2004
Posts: 36



(Msg. 2) Posted: Thu Feb 26, 2004 12:26 pm
Post subject: Re: HTTP PUT Method and IIS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ron Sochanski wrote:
 > To make use of the HTTP PUT method on IIS, do I need to
 > configure or install anything special?

Nope, but you will need a script to read/manipulate the data.

--
Net<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: HTTP PUT Method and IIS 
Back to top
Login to vote
anonymous315

External


Since: Nov 04, 2003
Posts: 9



(Msg. 3) Posted: Thu Feb 26, 2004 12:26 pm
Post subject: Re: HTTP PUT Method and IIS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

----- Net Mongrel wrote: -----

Ron Sochanski wrote:
  > To make use of the HTTP PUT method on IIS, do I need to
  > configure or install anything special?

Nope, but you will need a script to read/manipulate the data.

--
Net

Thanks for responding!

Could you please provide (i.e., point me in the direction of) such a script (for reading/manipulating HTTP PUT data)?

Thank you.

Ron Sochanski<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP PUT Method and IIS 
Back to top
Login to vote
netmongrel

External


Since: Feb 03, 2004
Posts: 36



(Msg. 4) Posted: Thu Feb 26, 2004 5:56 pm
Post subject: Re: HTTP PUT Method and IIS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ron Sochanski wrote:
 > ----- Net Mongrel wrote: -----
 >
 > Ron Sochanski wrote:
  > > To make use of the HTTP PUT method on IIS, do I need to
  > > configure or install anything special?
 >
 > Nope, but you will need a script to read/manipulate the data.
 >
 > Thanks for responding!
 >
 > Could you please provide (i.e., point me in the direction of) such a
 > script (for reading/manipulating HTTP PUT data)?

That all depends on what you're trying to achieve, but to test your form is
sending meaningful data:

<%
dim x
For each x in Request.Form
Response.Write x & " = " & Request.Form(x) & "<br>"
Next
%>

e&oe

--
Net<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP PUT Method and IIS 
Back to top
Login to vote
anonymous315

External


Since: Nov 04, 2003
Posts: 9



(Msg. 5) Posted: Thu Feb 26, 2004 5:56 pm
Post subject: Re: HTTP PUT Method and IIS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I've been attempting to use HttpSendRequest in a VB6 application to perform an HTTP PUT to a Windows 2000 Server Web server (IIS 5.0). The code looks something like:

Public Declare Function HttpOpenRequest Lib "wininet.dll" Alias "HttpOpenRequestA" (ByVal hConnect As Long, ByVal sVerb As String, ByVal sObjectName As String, ByVal sVersion As String, ByVal sReferer As String, ByVal sAcceptTypes As String, ByVal lFlags As Long, ByVal lContext As Long) As Long

Public Declare Function HttpSendRequest Lib "wininet.dll" Alias "HttpSendRequestA" (ByVal hRequest As Long, ByVal sHeaders As String, ByVal lHeadersLength As Long, ByVal sOptional As String, ByVal lOptionalLength As Long) As Integer
..
..
..

hHTTPOpenRequestHandle = HttpOpenRequest(hInternetConnectHandle, "PUT", "/test.txt", sVersion, sReferrer, sAcceptTypes, lFlagsHttpOpenRequest, lContextHttpOpenRequest)

iHttpSendRequestEx = HttpSendRequest(hHTTPOpenRequestHandle, "", 0, "Test_string", Len("Test_string"))

When I run this code, HttpSendRequest returns TRUE as desired, indicating (I believe) that the request was sent to the Web server machine. But the file test.txt does not get written to the machine! What am I doing wrong? Please help or advise where I might find help.

Thank you.

Ron Sochanski
 >> Stay informed about: HTTP PUT Method and IIS 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]