HTTP PUT Method and IIS
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server > HTTP PUT Method and IIS




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    HTTP PUT Method and IIS  
Ron Sochanski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-25-04 10:34 PM

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

Thank you.

Ron Sochanski





[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Net Mongrel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 09:34 AM

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







[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Ron Sochanski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 02:34 PM


----- 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






[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Net Mongrel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 03:34 PM

Ron Sochanski wrote:
>      ----- Net Mongrel wrote: -----
>
>      Ron Sochanski wrote: 
>
>      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







[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Ron Sochanski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 04:34 PM

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 s
omething like:

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

Public Declare Function HttpSendRequest Lib "wininet.dll" Alias "HttpSendReq
uestA" (ByVal hRequest As Long, ByVal sHeaders As String, ByVal lHeadersLeng
th As Long, ByVal sOptional As String, ByVal lOptionalLength As Long) As Int
eger
.
.
.

hHTTPOpenRequestHandle = HttpOpenRequest(hInternetConnectHandle, "PUT", "/te
st.txt", sVersion, sReferrer, sAcceptTypes, lFlagsHttpOpenRequest, lContextH
ttpOpenRequest)

iHttpSendRequestEx = HttpSendRequest(hHTTPOpenRequestHandle, "", 0, "Test_st
ring", 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?  Plea
se help or advise where I m
ight find help.

Thank you.

Ron Sochanski







[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Net Mongrel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 07:34 PM

Ron Sochanski wrote:
> I've been attempting to use HttpSendRequest in a VB6 application
> ...
>  Please help or advise where I might find help.

a vb6 newsgroup would seem to be favourite.

my server carries news:comp.lang.visual.basic which looks promising.  I
suspect there are several on the microsoft news servers.

--
Net







[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Ron Sochanski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 10:34 PM

Please allow me to step away from the coding aspects of my problem for a mom
ent.

I used the program "wfetch" (version 1.2) to attempt to perform an HTTP PUT 
to a virtual directory on the target Web server.  This directory does not pe
rmit anonymous access but does permit reads & writes.  I do not have a certi
ficate on the server.

Using Basic authentication, I get a "401 Access Denied message" from the ser
ver.  Using NTLM authentication, I get a "501 Not Supported" message.  I fee
l, thus, that the machine is not configured properly for HTTP PUT.

Any thoughts?

Thank you.

Ron Sochanski






[ Post a follow-up to this message ]



    Re: HTTP PUT Method and IIS  
Net Mongrel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-04 11:34 PM

Ron Sochanski wrote:
> Please allow me to step away from the coding aspects of my problem
> for a moment.
>
> I used the program "wfetch" (version 1.2) to attempt to perform an
> HTTP PUT to a virtual directory on the target Web server.  This
> directory does not permit anonymous access but does permit reads &
> writes.  I do not have a certificate on the server.
>
> Using Basic authentication, I get a "401 Access Denied message" from
> the server.  Using NTLM authentication, I get a "501 Not Supported"
> message.  I feel, thus, that the machine is not configured properly
> for HTTP PUT.
>
> Any thoughts?

yep - stop making it hard on yourself.

allow anonymous access and place two files on the server.  The first
containing a simple HTML form with at least one input element and a submit
button - which when submitted sends the data to the second page which is an
asp page that contains the trivial script to display the data.

Is this a public server?  Does it have a URL?

--
Net







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:54 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register