home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <title>AdvHTTP Component (Post Method)</title>
- </head>
- <body>
- <%
- dim HTTP
- set HTTP = Server.CreateObject("AdvHTTP.HTTP")
- HTTP.ProxyServer = Request.Form("ProxyServer")
- HTTP.ProxyPort = Request.Form("ProxyPort")
- HTTP.Path = Request.Form("Path")' path at which you want to save return data
- HTTP.SaveToFile = Request.Form("SaveToFile")' file name to be saved
- 'HTTP.Protocol = ""
- 'HTTP.Referrer = "Advanced Communications"
-
- 'multiple form fields
- HTTP.FormField Request.Form("FormFieldName"), Request.Form("FormFieldValue")
- 'you can specify more form fields to be post
-
- 'multiple url fields
- HTTP.URLField Request.Form("URLFieldName"), Request.Form("URLFieldValue")
- 'you can specify more url fields to be post
-
- 'multiple files
- HTTP.File Request.Form("FilePostName"), Request.Form("FilePost")
- 'you can specify more files to be post
-
- HTTP.URL = Request.Form("URL") 'perform post method on this URL
- set Result = HTTP.Post()
- if (HTTP.IsError = 1) then
- Response.Write "Error: " & HTTP.ErrorReason & "<br>"
- else
- Response.Write "MimeType: " & Result.MimeType & "<br>" & "Header: " & Result.Header & "<br>" & "FileContent: " & Result.FileContent & "<br>"
- end if
- set Result = Nothing
- set HTTP = Nothing
- %>
- </body>
- </html>
-