Проблема с капчей

Discussion in 'PHP' started by programming, 6 Jan 2010.

  1. programming

    programming New Member

    Joined:
    26 Aug 2009
    Messages:
    190
    Likes Received:
    3
    Reputations:
    0
    А при чём здесь хиден поля если даже на другой странице сразу другая капча.
     
  2. GlooK

    GlooK Elder - Старейшина

    Joined:
    20 Apr 2007
    Messages:
    172
    Likes Received:
    53
    Reputations:
    10
    Вот текст полученный через браузер:
    HTML:
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTIzMTkyNzYzMA9kFgQCAg9kFgICAQ8WAh4LXyFJdGVtQ291bnQCChYUAgEPZBYCZg8VAg4vcnVicmljLzEuaHRtbCXQn9GA0L7QtNCw0LbQsCDQsNCy0YLQvtC80L7QsdC40LvQtdC5ZAICD2QWAmYPFQIOL3J1YnJpYy8zLmh0bWwu0JDQstGC0L7Qt9Cw0L/Rh9Cw0YHRgtC4LCDQsNC60YHQtdGB0YHRg9Cw0YDRi2QCAw9kFgJmDxUCDi9ydWJyaWMvMi5odG1sL9Ci0LXRhdC90LjRh9C10YHQutC+0LUg0L7QsdGB0LvRg9C20LjQstCw0L3QuNC1ZAIED2QWAmYPFQIOL3J1YnJpYy80Lmh0bWwS0JDQstGC0L7QutC70YPQsdGLZAIFD2QWAmYPFQIOL3J1YnJpYy81Lmh0bWwS0JzQvtGC0L7RhtC40LrQu9GLZAIGD2QWAmYPFQIOL3J1YnJpYy82Lmh0bWwe0JDQstGC0L7RgdC/0LXRhtGC0LXRhdC90LjQutCwZAIHD2QWAmYPFQIOL3J1YnJpYy83Lmh0bWwU0JDQstGC0L7Qv9GA0LXRgdGB0LBkAggPZBYCZg8VAg4vcnVicmljLzguaHRtbB7QkNCy0YLQvtGB0YLRgNCw0YXQvtCy0LDQvdC40LVkAgkPZBYCZg8VAg4vcnVicmljLzkuaHRtbBrQo9C90LjQstC10YDRgdCw0LvRjNC90L7QtWQCCg9kFgJmDxUCDy9ydWJyaWMvMTAuaHRtbAzQlNGA0YPQs9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AgEPZBYCZg8VAgIxNA9Db3VudGVyc1wxMC5naWZkAgIPZBYCZg8VAgIxNQ9Db3VudGVyc1wxMS5naWZkAgMPZBYCZg8VAgIxNg9Db3VudGVyc1wxNS5naWZkAgkPDxYEHg9Db21tYW5kQXJndW1lbnQFBDIzNzQeC0NvbW1hbmROYW1lBQt0ZXN0QHRlcy5ydWRkZBrX8+GLyaVxYe3NEfP5o18qRqEy" />
    Как видишь они отличаются, анализируй JS.
     
  3. oldsugar

    oldsugar New Member

    Joined:
    24 May 2009
    Messages:
    30
    Likes Received:
    0
    Reputations:
    0
    как то тоже не мог отправить капчу.. оказывалось что я ее перегружал когда отправлял заголовки курлом..

    решилось просто, но не совсем понял как работает

    1 заходим в капчу и получаем куки
    2 !скачиваем! картинку капчи , рапознаем
    3 отправляем правильные заголовки