Не приходит ответ в зенно, Get запрос.

Санёк

Client
Регистрация
30.08.2013
Сообщения
325
Благодарностей
111
Баллы
43
Собственно задача проверить урл на жизнедеятельность в одноклассниках, по средствам Get и Post запросов, собственно ссылка:

http://ok.ru/group/56807165263923/topic/63910040191027

При переходе через браузер срабатывает редирект на тему с обновленным id, если же делать эту операцию через запросы на редирект, тогда зенка ничего не отдает, а фидлер показывает ответ (шапку ответа).

Может кто сталкивался с такой проблемой, быть может через другую библиотеку, не зенновскую?!

Запрос наблюдаемый через Фидлер:

Код:
GET http://ok.ru/dk?st.cmd=redirectAuthCode&nc=1433495580125 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Host: ok.ru
Connection: Keep-Alive
Cookie: bci=5969547573451685997; AUTHCODE=VVa-_e1RtrNcqEsCQRU3U9mfrlwokwKAWPn1RYmHe_QRCAMCIv4oqohgj7jvMPgmO5SqdF4JTHb9Q2wd5i2SIBtoHWdejk1VgRtMjdEmWFs_2; JSESSIONID=91fe03f9dc937227aea8a592bdfc47939b80a0ec5c365368.38bb688f; LASTSRV=ok.ru; landref=""; BANNER_LANG=ru; bd_login_cookie="1433495193474:6624842dbd26345a332bb11b0d05a60e"
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://ok.ru/group/56807165263923/topic/63910040191027
Ответ:

Код:
HTTP/1.1 302 Found
Server: Apache-Coyote/1.1
P3P: CP="NOI DSP COR CUR OUR NOR"
Location: http://odnoklassniki.ru/dk?st.cmd=updateAuthCode&nc=1433495672444&st.auth=uCu7I56m8Ip3I22ew_bztN5Gh8Iifg-nPIcu4hZj0GdxASV0vQPgG4vjRHittsyPLdnBQelJSECpTcXSat8S35iyUbYD9spKu1LUPEmYh15GrlLjgAH8DZmOd9GvugSblKH4-AS_OMohNgaCVpdkR-qw5v6VCbD9qtxWKAvQzwE&st.js=ZuXbZF65a3exa04Yg8quEoeSkSe2-Kgncfgr14jbCJY0hs0RwglrOeL2gQwf7AqBQ5_ADEgR-azWNG_9A0XromMzv9LLee-FBq9zOaeo4tY&st.bci=L4V2mNc5Tp7dQ8gee8rkQLYjS-1nKh_BY2TWLFiVjiQ
Content-Length: 0
Date: Fri, 05 Jun 2015 09:14:32 GMT
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
какой билд используете?
 

Санёк

Client
Регистрация
30.08.2013
Сообщения
325
Благодарностей
111
Баллы
43

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
на 5.8.0.2

Код:
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Fri, 05 Jun 2015 10:01:10 GMT


<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta><meta http-equiv="X-UA-Compatible" content="IE=edge"></meta><title>Odnoklassniki</title><meta http-equiv="Cache-Control" content="no-cache"></meta><meta http-equiv="Pragma" content="no-cache"></meta><meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT"></meta><style type="text/css">.hookData { display: none; position: absolute; left: -9999px; }</style><script type="text/javascript">var okCssStart = new Date().getTime();</script>
<link href="http://st.mycdn.me/res/css/prod/core/ncore.95b4d731.css" type="text/css" rel="stylesheet" id="lightCoreCss">
<link href="http://st.mycdn.me/res/css/prod/main/nmain.9f8721ff.css" type="text/css" rel="stylesheet" id="lightMainCss">
<link href="http://st.mycdn.me/res/css/prod/main/nmain_postponed.6d5d16bd.css" type="text/css" rel="stylesheet">
<link href="http://st.mycdn.me/res/css/prod/core/ncore_postponed.cf001e69.css" type="text/css" rel="stylesheet">
<link id="favicon" rel="shortcut icon" href="/favicon.ico?v2" type="image/x-icon">
<script type="text/javascript">var okCssEnd = new Date().getTime();</script></head><body class="anonym p404"><div class="p404_w"><a href="/dk?st.cmd=anonymMain"><img src="http://st.mycdn.me/res/i/ok.png" class="p404_logo"></img></a><h1 tsid="page-not-found" class="p404_t">There is no such page on OK.RU</h1>But you will find many others&nbsp;if you <a href="/dk?st.cmd=anonymMain&amp;st._aid=NF_Login">log in</a> or <a href="/dk?st.cmd=anonymRegistrationEdit&amp;st._aid=NF_Reg">Sign up</a></div><div id="hook_Block_Footer" class="hookBlock"><div id="footer" class="footer__choose-lang grid"><div class="ft __anonym"><div><ul class="ff_links_li ff_links__languauge"><div id="hook_Block_FooterLang" class="hookBlock"><li class="ff_links_li ff_links__selected footer__choose-lang">English</li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=ru&amp;st._aid=FatFooter_changeLang">Русский</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=uk&amp;st._aid=FatFooter_changeLang">Українська</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=uz&amp;st._aid=FatFooter_changeLang">O'zbek tili</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=az&amp;st._aid=FatFooter_changeLang">Azərbaycan dili</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=hy&amp;st._aid=FatFooter_changeLang">Հայերեն</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=ka&amp;st._aid=FatFooter_changeLang">ქართული</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=mo&amp;st._aid=FatFooter_changeLang">Română (MD)</a></li><li class="ff_links_li"><a target="_self" href="/dk?st.cmd=anonymGroupTopic&amp;cmd=lang&amp;lang=kk&amp;st._aid=FatFooter_changeLang">Қазақ тілі</a></li><div class="hook"><script>OK.onload.addCallback(function(){OK.loader.use(['OKCustomJs'], function(){OK.addEvent(window,'scroll',OK.blockHoverStart);});});</script><style>.mac-saf #pointerOverlay,.gecko #pointerOverlay,.mac-chrome #pointerOverlay,.chrome #pointerOverlay {display: block;}</style></div></div></ul><ul class="ff_links"><li class="ff_links_li"><a href="http://m.odnoklassniki.ru">Mobile version</a></li><li class="ff_links_li"><a target="_blank" href="http://sales.mail.ru/ru/russia/odnoklassniki/latest/#price">Advertisement</a></li><li class="ff_links_li"><a target="_blank" href="http://apiok.ru">Developers</a></li><li class="ff_links_li"><a href="/help?st.cmd=helpFaq&amp;st._aid=FatFooter_helpFaqAnonym">Help</a></li><li class="ff_links_li"><a href="/regulations?st.cmd=helpContent&amp;st._aid=FatFooter_helpRegulations">License Agreement</a></li><li class="ff_links_li"><a href="/ok">News</a></li><li class="ff_links_li"><a target="_blank" href="http://v.ok.ru/">Vacancies</a></li><li class="ff_links_li"><a target="_blank" href="http://corp.mail.ru">About the company</a></li></ul></div><p class="copy">© 2006–2015 Odnoklassniki</p><div id="hook_Block_FooterCounters" class="hookBlock"><div class="hook"><div id="tnsCounter" jsplace="tnsCounter"><!-- tns-counter.ru -->
<script language="JavaScript" type="text/javascript">
    window.setTimeout(function(){new Image().src='//www.tns-counter.ru/V13a***R>' + document.referrer.replace(/\*/g,'%2a') + '*odnoklassniki_ru/ru/UTF-8/tmsec=odnoklassniki_site/' + Math.round(Math.random() * 1000000000)}, 100);
</script>
<noscript>
    <img src="//www.tns-counter.ru/V13a****odnoklassniki_ru/ru/UTF-8/tmsec=odnoklassniki_site/" width="1" height="1" alt="">
</noscript>
<!--/ tns-counter.ru -->
</div><div id="liveInternetCounter" jsplace="liveInternetCounter"><script type="text/javascript">
(function (w, d) {
    "use strict";
    w.setTimeout(function () {
        var ref = '=',
            enc = encodeURIComponent;
        w.OK = w.OK || {};
        if (!w.OK.dref_li) {
            ref = enc(d.referrer);
            w.OK.dref_li = true;
        }
        new Image().src = '//counter.yadro.ru/hit?r' + ref + ((typeof(screen) == 'undefined') ? '' : ';s' + screen.width + '*' + screen.height + '*' + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)) + ';u' + enc(document.URL) + ';' + Math.random();
    }, 100);
}(window, document));
</script></div><div id="rbTopCounter" jsplace="rbTopCounter"><script type="text/javascript">
window.setTimeout(function(){(function(w,n,d,r,s){(new Image).src='//top-fwz1.mail.ru/counter?id=1963260;js=13'+
((r=d.referrer)?';r='+escape(r):'')+((s=w.screen)?';s='+s.width+'*'+s.height:'')+';_='+Math.random();})(window,navigator,document);},100);</script></div></div></div><iframe id="authCodeSyncFrame" width="0" height="0" src="/dk?st.cmd=redirectAuthCode&nc=1433498470712"></iframe><script type="text/javascript">(function(){document.cookie="viewport="+window.screen.availHeight+";path=/";})();</script></div></div></div></body></html>
 

Санёк

Client
Регистрация
30.08.2013
Сообщения
325
Благодарностей
111
Баллы
43

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
в теле ответа оно есть. это скрипт на странице
 

Санёк

Client
Регистрация
30.08.2013
Сообщения
325
Благодарностей
111
Баллы
43
в теле ответа оно есть. это скрипт на странице
Да действительно, заработало! Спасибо.
Но всё же качать новую версию немного страшновато, учитывая сколько багов вылетает, ну дай бог что бы в этой версии их было не так много))))
Тему можно закрывать)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)