VB .NET – HttpWebRequest Example – Sending POST Data
|VB .NET – HttpWebRequest Example – Sending POST Data
District Echo is a forum devoted to computer based pursuits. It is made to help you and your computer with any and all problems, be it programming, graphics, or hardware.
To get this download, sign up at districtecho.net and navigate to the .NET section. You will find this script and more there. After you’ve found what you need, why not contribute your own knowledge to the site as well?
Quick link to the script: http://www.districtecho.net/showthread.php?tid=35
VB .NET – HttpWebRequest Example – Sending POST Data
VB .NET – HttpWebRequest Example – Sending POST Data
13 Comments
Epic.
thanks that seems easy
@Goosebumbsfan shut up
@recent I can't comment on a video without someone saying something stupid. Go die.
@Goosebumbsfan i dont say stupid stuff i just say stuff stupid!
Your website link is not working… any other way to download this code as VS Project?
Oh my god. GENIUS! Screw around with the game scores!
cool make more tutorials for games and not also
Really? That dump of code and no copy+paste or pastebin?? -_____- and a broken url?
Nice work
Here the code for who needs it:
Public Function postData(ByRef URL As String, ByRef POST As String, ByRef Cookies As CookieContainer)
Dim request As HttpWebRequest
Dim response As HttpWebResponse
request = CType(WebRequest.Create(URL), HttpWebRequest)
request.ContentType = "application/x-www-form-urlencoded"
MsgBox(POST)
request.ContentLength = POST.Length
request.Method = "POST"
request.AllowAutoRedirect = False
Dim requeststream As Stream = request.GetRequestStream()
Dim postBytes As Byte() = Encoding.ASCII.GetBytes(POST)
requeststream.Write(postBytes, 0, postBytes.Length)
requeststream.Close()
response = CType(request.GetResponse(), HttpWebResponse)
Return New StreamReader(response.GetResponseStream()).ReadToEnd()
End Function
just as i need. thanks 🙂
amazing .please source friskanovitasari26@gmail.com