> vbCRLF = Chr(13)+Chr(10) > Clear >* cFile = 'c:\winnt\media\chimes.wav' > cFile = "c:\boot.ini" > cContent = FileToStr(cFile) > ? Transform(Len(cContent)) > cAddr = 'http://127.0.0.1:8080/wteupload.asp' > oHTTP = CreateObject('Msxml2.ServerXMLHTTP.4.0') > oHTTP.Open( 'POST' , cAddr , .f. , 'testdom1\testdomuser1' , 'password' ) > cBoundary = '---AaB03x' > oHTTP.SetRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' ) > oHTTP.SetRequestHeader( 'Content-Type', 'multipart/form-data, boundary=' + cBoundary ) > oHTTP.SetRequestHeader( 'Content-Length', Transform(Len(cContent)) ) > cBody = '--' + cBoundary + vbCRLF + ; > 'Content-Disposition: form-data; name="thefile1"; filename='+(cFile)+'"'+ vbCRLF + ; > 'Content-Type: image/gif' + vbCrLf + vbCRLF + ; > cContent + vbCRLF +'--' + ; > cBoundary + vbCRLF + ; > 'Content-Disposition: form-data; name="submit1"' + vbCRLF + vbCRLF + ; > 'Submit' + vbCRLF + vbCRLF + '--' + cBoundary + '--' > oHTTP.Send(cBody) > ? oHTTP.ResponseText >>