Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Msxml2.ServerXMLHTTP.4.0

Status
Not open for further replies.

drkestrel

MIS
Sep 25, 2000
439
GB
According to MSXML2.ServerXMLHTTP.4.0 support the FTP protocol, but how could I use it to FTP post a file to a remote FTP server that requires a username and password.

I guess it would be somthing like the following:
Code:
  objXMLHTTP.Open("PUT", "ftp://remoteFTPSite, false,userName,password);
  objXMLHTTP.Send(objWhatDoISend);

Questions are
1) what should I pass in to the
Code:
objWhatDoISend
method if I want to post c:\test\file1.exe?
2) How could I specify the remote filename (or would it automatically be file1.exe?
3) Do I need to specify that file transfer should be done using the binary mode (as opposed to the ASCII mode)?
4) Would I need to set any other request header??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top