Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i try to send web request to shop.nimbuzz.com/index.php?


but i cant give true answer

i use this code!

VB
Dim postData As String = "u=%C4%B1%C2%B0%C4%B1&t=1385069699&b=SYMBIAN_KEYPAD&ma=3&signature=c103511ba5e93d665cb023a7522dffa0&mi=3"
       Dim tempcookies As New CookieContainer
       Dim encoding As New UTF8Encoding
       Dim byteData As Byte() = encoding.GetBytes(postData)
       Dim postreq As HttpWebRequest = DirectCast(HttpWebRequest.Create("http://shop.nimbuzz.com/index.php?"), HttpWebRequest)
       postreq.Method = "GET"
       ' postreq.KeepAlive = True
       postreq.CookieContainer = tempcookies
       '  postreq.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729"
       postreq.ContentType = "application/x-www-form-urlencoded"
       postreq.Referer = "http://shop.nimbuzz.com/index.php"
       Dim postresponse As HttpWebResponse
       postresponse = DirectCast(postreq.GetResponse, HttpWebResponse)
       tempcookies.Add(postresponse.Cookies)
       'logincookie = tempcookies
       Dim postreqreader As New IO.StreamReader(postresponse.GetResponseStream())
       Dim thepage As String = postreqreader.ReadToEnd
       MsgBox(thepage)
Posted
Comments
walterhevedeich 21-Nov-13 19:41pm    
What do you mean true answer? What does it return? Do you encounter an error while sending?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900