Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 3rd, 2007, 12:45 AM
SPRFRKR
Guest
 
Posts: n/a
Default 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!

  #2  
Old January 3rd, 2007, 04:55 AM
Jon Paal
Guest
 
Posts: n/a
Default 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!
>

  #3  
Old January 3rd, 2007, 03:25 PM
Anthony Jones
Guest
 
Posts: n/a
Default 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.

Quote:
>
Thanks!
>

  #4  
Old January 3rd, 2007, 03:25 PM
Anthony Jones
Guest
 
Posts: n/a
Default 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.



  #5  
Old January 3rd, 2007, 04:35 PM
Jon Paal
Guest
 
Posts: n/a
Default 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.
>
>
>

  #6  
Old January 3rd, 2007, 05:05 PM
Anthony Jones
Guest
 
Posts: n/a
Default 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'?



 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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.
Post your question now . . .
It's fast and it's free

Popular Articles