1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"400 Bad Request" - error with Cache control with bot

Discussion in 'C, C++, C#' started by Homer Simpson72, Dec 31, 2015.

  1. Homer Simpson72

    Homer Simpson72 Newbie

    Joined:
    Dec 6, 2015
    Messages:
    23
    Likes Received:
    0
    I am trying to develop a method in C# that downloads Recaptcha V2 images and display them in a picturebox in a Windows Form. I asked a question previously on this and so far it's the only answer that has got me anywhere. The issue I am running into now is that whenever I try to download the ReCaptcha V2 image I run into a 400 Bad Request. I have tried tracking the problem with Fiddler, and it says that Cache-control is set to No Cache and that pre-check and post-check tokens are meaningless. Is there a way I can resolve this Fiddler error? I am still a newbie and I can't post any code without triggering the moderation system. I am using HttpWebRequest/httpwebresponse methods.
     
  2. NullReferenceX

    NullReferenceX Newbie

    Joined:
    Dec 1, 2015
    Messages:
    41
    Likes Received:
    83
    Occupation:
    Programmer
    Location:
    Germany
    Without code there isn't much we can do to help you.
     
  3. rootjazz

    rootjazz Jr. VIP Jr. VIP

    Joined:
    Dec 21, 2012
    Messages:
    684
    Likes Received:
    326
    Occupation:
    Developer
    Location:
    UK
    Home Page:
    What exactly do you mean by recaptcha v2?


    There are a few recaptcha methods for inserting recaptcha to the page, depending on what you want todo with effect how to go about this
     
  4. Overfl0w

    Overfl0w Newbie

    Joined:
    Jan 8, 2016
    Messages:
    15
    Likes Received:
    0
    Must be something wrong with your request/headers/cookies etc.
    Best to capture the request with a real browser and try to replicate it.
     
  5. Homer Simpson72

    Homer Simpson72 Newbie

    Joined:
    Dec 6, 2015
    Messages:
    23
    Likes Received:
    0
    I am trying to download the challenge image with street signs etc. Recaptcha V2 requires the user to click certain images. code.jpg
     
  6. carnage_100101

    carnage_100101 BANNED BANNED

    Joined:
    Feb 17, 2011
    Messages:
    240
    Likes Received:
    163
    Copy and paste your code here,I can barely see the screenshot.
     
  7. JazzJazzy

    JazzJazzy Junior Member

    Joined:
    Sep 13, 2015
    Messages:
    136
    Likes Received:
    20
    Gender:
    Male
    You have to catch the right exception and read the error message inside of it.
     
    • Thanks Thanks x 1
  8. Homer Simpson72

    Homer Simpson72 Newbie

    Joined:
    Dec 6, 2015
    Messages:
    23
    Likes Received:
    0
    Sorry about the delay. Thanks a bunch guys, a lot has been happening for me IRL. This actually might solve the problem.
     
    Last edited: Feb 8, 2016