Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Automate Upload of a file to a website

Avatar of jw850
jw850 asked on
Visual Basic.NET
3 Comments1 Solution509 ViewsLast Modified:
I am writing a VB.NET application to automate the submission of real estate listings to a website.  I have done most of the project using IE automation and mshtml object.  I have discovered a problem that I now realize is quite common.  I need to upload a file using the form on the website. The input type="file" does not allow one to set the value attribute (for the filename) for security reasons.  I now realize that I need to create a HTTPRequest object from scratch and attach the file to that but I can't seem to find a solid example of how to do so.  For example, how can I tell what the contents of the request should look like in the first place? Also this is a password protected site.  Please help!
ASKER CERTIFIED SOLUTION
Avatar of dave_moats
dave_moats

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers