Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: [vb.net] main shop catcha image to picturebox HELP!

  1. #11
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Quote Originally Posted by stacyK View Post
    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
    Another hint for you: (you need an account to see links) It will allow you to see the page requests your browser is making (ie POST vs GET, what data is being sent, etc)

  2. #12
    stacyK's Avatar
    Joined
    May 2012
    Posts
    13
    Userbars
    0
    Thanks
    4
    Thanked
    0/0
    Mentioned
    Never
    Time Online
    N/A
    Avg. Time Online
    N/A
    Quote Originally Posted by Zachafer View Post
    Another hint for you: (you need an account to see links) It will allow you to see the page requests your browser is making (ie POST vs GET, what data is being sent, etc)
    i downloaded this yesterday haha

  3. #13
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Then check the headers being sent when you click "Ok" on the confirm popup box

  4. #14
    stacyK's Avatar
    Joined
    May 2012
    Posts
    13
    Userbars
    0
    Thanks
    4
    Thanked
    0/0
    Mentioned
    Never
    Time Online
    N/A
    Avg. Time Online
    N/A
    Quote Originally Posted by Zachafer View Post
    Then check the headers being sent when you click "Ok" on the confirm popup box
    hhmm its a get request (you need an account to see links).. tried it before, didnt work.. thanks anyway

  5. #15
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Quote Originally Posted by stacyK View Post
    hhmm its a get request (you need an account to see links).. tried it before, didnt work.. thanks anyway
    Look at the Referrer header value

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •