Hi Brian,
You might want to investigate the Webclient class for that. It allows you to
simulate - in code - all the aspects of a POST, including uploading a file:
http://msdn.microsoft.com/library/de...dfiletopic.asp
' Create a new WebClient instance.
Dim myWebClient As New WebClient()
Console.WriteLine(ControlChars.Cr + "Please enter the fully qualified path
of the file to be uploaded to the URL")
Dim fileName As String = Console.ReadLine()
Console.WriteLine("Uploading {0} to {1} ...", fileName, uriString)
' Upload the file to the Url using the HTTP 1.0 POST.
Dim responseArray As Byte() = myWebClient.UploadFile(uriString, "POST",
fileName)
Ken
"Brian" <br********@hotmail.com> wrote in message
news:29**************************@posting.google.c om...
Hi, I've been trying to find a way to upload file to another site that
is not using IIS. The site that I want to upload file to has a simple
php script to receive file uploaded through standard http post with a
file upload. However, how do I upload file to the site using asp.net?
thanks
Brian