Error 405 method not allowed?

Rakesh Rao

Member
Joined
Oct 1, 2005
Messages
18
Programming Experience
Beginner
hey all
am trying this to post some values to a url but an error apperars.. can u help me out of this hell. I hav an urgency to finish up with in 48 hours.
So.. would you please be fast.
Am greatfull to you in Advance.

Here is the full code:
Platform win xp pro
tool vb.net
Problem Error 405 Method not allowed.

Imports System.Windows.Forms
Imports System.Net
Imports System.Net.WebClient
Imports System.Collections.Specialized
Imports System.Text
Imports System.Web
Imports System.Runtime.InteropServices

Private
Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Dim myNameValueCollection As New System.Collections.Specialized.NameValueCollection()
myNameValueCollection.Add("name", "James Bond")
myNameValueCollection.Add("email", "Jamesbond007@yahoo.com")
myNameValueCollection.Add("subject", "Don't worry am there!")
myNameValueCollection.Add("body", "James bond is with u to get u out of the hell.")
myNameValueCollection.Add("url", "www.google.com")
myNameValueCollection.Add("url_title", "Search Engine")
myNameValueCollection.Add("img", "Nothing Here")
Dim uriString As String = "http://www.towerkill.com/towertalk/messages/7421.html"
Dim myWebClient As New System.Net.WebClient()
WebBrowser1.Navigate2(uriString)
' Upload the NameValueCollection.
Dim responseArray As Byte() = myWebClient.UploadValues(uriString, "POST", myNameValueCollection)
End Sub
 
Back
Top