Originally Posted by
stacyK
i'm trying to go through the motion from the web browser before i code it.. but seems like it doesnt work.
isit because of the confirmation box after clicking the item?
example:
Are you sure you wish to purchase Large Spirulina Smoothie at 585 NP?
(you can still haggle to push the price lower!)
do i have to return true?
this is what im using for post data.
Public Function PostData(ByRef URL As String, ByRef POST As String, Optional ByVal Referer As String = "") As String
Dim request As HttpWebRequest
Dim response As HttpWebResponse
request = CType(WebRequest.Create(URL), HttpWebRequest)
If UseCookies = True Then request.CookieContainer = Me.NeoCookies
If UseProxy Then
request.Proxy = New System.Net.WebProxy(ProxyIp & ":" & ProxyPort)
End If
request.ContentType = "application/x-www-form-urlencoded"
request.UserAgent = UserAgent
request.ContentLength = POST.Length
request.Referer = Referer
request.Method = "POST"
request.AllowAutoRedirect = True
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)
Dim RT As String = New StreamReader(response.GetResponseStream()).ReadToE nd()
LastResponse = RT
Return RT
End Function