danclay
9 years agoNew Contributor
HTTP post a file
Hello! I am currently using Test Complete 11 and working with a web application that can be updated via sending a file to a server. I was hoping to automate this process but having trouble figuring out how to do so. I have previously been posting strings/json using MSXML but unsure how to send a file. Any advice would be greatly appreciated!
Hi,
You may either use some tool like Fiddler to record the traffic from your application to the server when the application sends a file and implement it then in code or consult with developers about what server expects from the application.
As a possible example, the code may look like this: http://fm4dd.com/programming/shell/microsoft-vbs-https-upload.htm