Uploading files with VB.NET using HTTP POST ?

Posted on 2008-11-06
Last Modified: 2010-09-04

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


Question by:jonnykeogh
    LVL 4

    Accepted Solution

    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

    LVL 2

    Author Comment

    Thanks, this is exactly what I was looking for.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now