
January 3rd, 2007, 12:45 AM
| | | Get File from FTP Server - ServerXMLHTTP
<%
Response.Buffer = True
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
'objHTTP.open "GET","ftp://xxx.xxx.xx.xxx/xxx.mp3", false, "username",
"password"
objHTTP.open "GET","ftp://username:password@xxx.xxx.xx.xxx/xxx.mp3",
false
objHTTP.send
Response.ContentType = "application/octet-stream"
Response.BinaryWrite ObjHTTP.responseBody
%>
Any ideas why the above code does not let me access the file on the FTP
server? Neither method to authentcate seems to work. Also tried "OPEN"
but I don't think that worked either.
Thanks! | 
January 3rd, 2007, 04:55 AM
| | | Re: Get File from FTP Server - ServerXMLHTTP
Why would you think that it is allowed to mix http and ftp protocols ?
"SPRFRKR" <superfreaker@gmail.comwrote in message news:1167784805.451638.178530@a3g2000cwd.googlegro ups.com... Quote:
<%
Response.Buffer = True
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
'objHTTP.open "GET","ftp://xxx.xxx.xx.xxx/xxx.mp3", false, "username",
"password"
objHTTP.open "GET","ftp://username:password@xxx.xxx.xx.xxx/xxx.mp3",
false
objHTTP.send
>
Response.ContentType = "application/octet-stream"
Response.BinaryWrite ObjHTTP.responseBody
%>
>
Any ideas why the above code does not let me access the file on the FTP
server? Neither method to authentcate seems to work. Also tried "OPEN"
but I don't think that worked either.
>
Thanks!
>
| | 
January 3rd, 2007, 03:25 PM
| | | Re: Get File from FTP Server - ServerXMLHTTP
"SPRFRKR" <superfreaker@gmail.comwrote in message
news:1167784805.451638.178530@a3g2000cwd.googlegro ups.com... Quote:
<%
Response.Buffer = True
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
'objHTTP.open "GET","ftp://xxx.xxx.xx.xxx/xxx.mp3", false, "username",
"password"
objHTTP.open "GET","ftp://username:password@xxx.xxx.xx.xxx/xxx.mp3",
false
objHTTP.send
>
Response.ContentType = "application/octet-stream"
Response.BinaryWrite ObjHTTP.responseBody
%>
>
Any ideas why the above code does not let me access the file on the FTP
server? Neither method to authentcate seems to work. Also tried "OPEN"
but I don't think that worked either.
| ServerXMLHTTP being based on WinHTTP is limited strictly to HTTP protocol
(and HTTPS) only. | 
January 3rd, 2007, 03:25 PM
| | | Re: Get File from FTP Server - ServerXMLHTTP
"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12pmdhcb9bptk41@corp.supernews.com... Quote:
Why would you think that it is allowed to mix http and ftp protocols ?
>
| Because this sort of thing would work using MSXML2.XMLHTTP object. | 
January 3rd, 2007, 04:35 PM
| | | Re: Get File from FTP Server - ServerXMLHTTP
you can't mix protocols.
"Anthony Jones" <Ant@yadayadayada.comwrote in message news:%23fQ3mq0LHHA.1240@TK2MSFTNGP03.phx.gbl... Quote:
>
"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12pmdhcb9bptk41@corp.supernews.com... Quote:
>Why would you think that it is allowed to mix http and ftp protocols ?
>>
| >
Because this sort of thing would work using MSXML2.XMLHTTP object.
>
>
>
| | 
January 3rd, 2007, 05:05 PM
| | | Re: Get File from FTP Server - ServerXMLHTTP Quote:
>
"Anthony Jones" <Ant@yadayadayada.comwrote in message
| news:%23fQ3mq0LHHA.1240@TK2MSFTNGP03.phx.gbl... Quote: Quote:
"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12pmdhcb9bptk41@corp.supernews.com... Quote:
Why would you think that it is allowed to mix http and ftp protocols ?
>
| Because this sort of thing would work using MSXML2.XMLHTTP object.
| >
"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
| news:12pnm60g6l71k0f@corp.supernews.com... Quote:
you can't mix protocols.
>
| What do you mean by 'mix protocols'? |
Posting 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 | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|