Never tried it, but maybe you could play with adodb.stream, e.g. something
like this:
<%
set adoStream = CreateObject("ADODB.Stream")
adoStream.mode = 3
adoStream.type = 1
adoStream.open
adoStream.loadFromFile "c:\path\file.extension"
data = adoStream.read(adoStream.size) ' may need set here?
set adoStream = nothing
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", "http://www.google.com/upload.asp", False
xml.setRequestHeader "Content-Type", "appl" & _
"ication/x-www-form-urlencoded"
xml.Send "uploadThisFile=" & data
Set xml = Nothing
%>
"garbagecatcher" <garbagecatcher@hotmail.com> wrote in message
news:03bf01c37706$12bc8640$a301280a@phx.gbl...[color=blue][color=green]
> >Do you have such a web page on this web server you can't[/color]
> control?
>
> Exactily, and I just need to know how I can send a file
> through that form through my webserver. Is this possible
> with XMLHTTP?
>
> So to continue with this google concept. If google had a
> web page that had this content:
>
>
http://www.google.com/uploadstuff.html
> <form name="upload" action="upload.asp" method="post">
> <input type="file" name="uploadThisFile">
> <input type="submit">
> </form>
>
> And you needed to submit files from your webserver to
> google, using that form. How would you do it? I think it
> can be done using something like this (code example
> below). I just don't know how to read and post the file:
>
> Response.Buffer = True
> Dim xml
> Set xml = Server.CreateObject("Microsoft.XMLHTTP")
> xml.Open "POST", "http://www.google.com/upload.asp", False
> xml.setRequestHeader "Content-Type", "application/x-www-
> form-urlencoded"
> xml.Send "uploadThisFile=" //I don't know how to read or
> post the file
> Set xml = Nothing[/color]