Uploading files with VB.NET using HTTP POST ?

Hello

Does anybody know how to upload files via HTTP POST using VB.NET?

Thanks


Jonathon
LVL 2
jonnykeoghAsked:
Who is Participating?
 
BTosonConnect With a Mentor Commented:
Do you have a script that will accept the input?
The most basic method is shown below.
Dim WC As New System.Net.WebClient
Dim UploadResponse = WC.UploadFile("http://address/to/script", "POST", "filename.txt")

Open in new window

0
 
jonnykeoghAuthor Commented:
Thanks, this is exactly what I was looking for.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.