Home > Back-end >  People: why I use IDHTTP after the success of landing site, when they visit other pages does suggest
People: why I use IDHTTP after the success of landing site, when they visit other pages does suggest

Time:10-13

Recently wanted to study application of IDHTTP this control, use the IDHTTP on other website before you visit the following websites haven't made a mistake, but today want to land market network after the success of landing, point "to enter the member center management information", enter the member center home page http://www.ganji.com/vip/index.php, after the success of landing and then simulated by IDHTTP GEThttp://www.ganji.com/vip/index.php, return the information but it says no landing site need new why is this? The whole day, o master, very grateful!

CodePudding user response:

GET/VIP/index. HTTP/1.1 PHP
Accept: application/x - the rest - flash, image/GIF image/x - xbitmap, image/jpeg image/pjpeg, application/msword, application/VND. - ms excel, application/VND. - ms powerpoint, */*
Referer: http://www.ganji.com/user/login_success.php? The username=189 e69c3 & amp; Next=http%3A%2F%2Fbj.ganji.com % 2 f
The Accept - Language: useful - cn
The user-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; The.net CLR 2.0.50727; 360 se)
The Accept - Encoding: gzip, deflate
Host: www.ganji.com
Connection: Keep Alive -
Cookie: __utmc=32156897; _gl_tracker=22% % 7 b % 22 ca_source % 3 a % 22 hao. 360. The cn 22% % 22% 2 c % 22 ca_name % 3 a % 22 hao360_hao360_011_quanguoshouye % 22% 2 c % 22 ca_kw % 3 a 22% 22% % 22% % 22 ca_id % 22% 2 c 3 a 22% % 22% % 22 sid % 22% 2 c 3 a62468462973%7 d; GANJISESSID=c075743aa4edcd7718776b9cc03ac1ab; Citydomain=bj; __utma=32156897.1436394078.1334469449.1334502587.1334568068.5; __utmz=32156897.1334568068.5.4. Utmcsr=hao. 360. Cn | utmccn=(referral) | utmcmd=referral | utmcct=/; Ganji_uuid=3618082767188231089551; __utmb=32156897.28.10.1334568068; GanjiUserName=189 e69c3; GanjiUserInfo=%7B%22user_id%22%3A%22103787743%22%2C%22user_name%22%3A%22189e69c3%22%2C%22email%22%3A%22%22%2C%22status%22%3A%220%22%2C%22province%22%3A%220%22%2C%22city%22%3A%220%22%2C%22city_code%22%3A%220%22%2C%22district%22%3A%220%22%2C%22registration_date%22%3A%221334382231%22%2C%22gender%22%3A%223%22%2C%22photo%22%3A%220%22%2C%22email_auth_time%22%3A%220%22%2C%22phone%22%3A%220%22%2C%22phone_auth_time%22%3A%220%22%2C%22nickname%22%3A%22%22%2C%22regcity%22%3A%22%22%2C%22lastcity%22%3A%22%22%2C%22is_mobile%22%3A%220%22%2C%22is_authemail%22%3A%220%22%2C%22is_authphone%22%3A%220%22%2C%22username%22%3A%22189e69c3%22%7D; Supercookie=ZGNmAmt3AmDmWQWuMTRmMwV1MTWyAGD3ZmZkLzL4BGEwLJZ0BQEyZGWyL2IvLzIuLJL % 3 d; Sscode=J8Eezs7gDmnEVGGwohF3ljh % 2 b3z0 24 24 zgt5mgl5lmz ygrmagt4agpm % % % % 3 d 3 d; LastLoginTime=2012-4-16; 7 c90 sscTime=1334568861%; _gl_speed=% 5 b % 22% 2 fvip % 2 findex. PHP % 22% 2 c1334568869843%5 d

Is this point "to enter the member center management information", enter the member center home page http://www.ganji.com/vip/index.php caught package,

And then: form1. Memo1. Text:=Utf8ToAnsi (form1. IdHTTP1. Get (' http://www.ganji.com/vip/')); But return need new login

Where is the problem? The man under the help busy!

CodePudding user response:

Take a cookie?

CodePudding user response:

Cookies: behind so much content all take? How to get and change

CodePudding user response:

Of course to take, otherwise you are not logged in white

CodePudding user response:

If Form1. Idhttp1. CookieManager. CookieCollection. Count & gt; 0 then
The begin
For I:=0 to Form1. IdHTTP1. CookieManager. CookieCollection. Do the Count - 1

Form1. Memo6. Lines. The Add (Form1. IdHTTP1. CookieManager. CookieCollection [I] CookieText);
Form1. Memo6. Text:=Copy (Form1. Memo6. Text, 1, Pos ('; 'Form1. Memo6. Text));

The end;

Get only: GANJISESSID=4 b2cfd0083f5863c27565bdb93d9e5b1;

CodePudding user response:

Waiting for the master

CodePudding user response:

Looking forward to problem solving

CodePudding user response:

Form1. Memo6. Lines. The Add (Form1. IdHTTP1. CookieManager. CookieCollection [I] CookieText);
Form1. Memo6. Text:=Copy (Form1. Memo6. Text, 1, Pos ('; 'Form1. Memo6. Text));

There are 100 cookies, were you took, and only one,,,
Are you to cover the
In fact, two controls can be done,
IdHttp
IdHttpManager
In IdHttp. Again the CookieManager refers to the IdHttpCookieManager
Cookie, it can fix the

CodePudding user response:

The beginning is underlined, are rankings with garbage cookies. Don't ignore their

CodePudding user response:

If Form1. IdHTTP1. CookieManager. CookieCollection. Count & gt; 0 then
For I:=0 to Form1. IdHTTP1. CookieManager. CookieCollection. Do the Count - 1
Form1. Memo6. Lines. The Add (Form1. IdHTTP1. CookieManager. CookieCollection [I] CookieText);

This can only be GANJISESSID=4 b2cfd0083f5863c27565bdb93d9e5b1; This article the other did not

CodePudding user response:

Finished after landing cookies only during a visit to other pages if prompt you to log in again to create HTTP cookies have to do is add
Of love and marriage in 537009488 a few days ago I made the fair stand inside letter sent great one-time send 200 + account information but need certification

CodePudding user response:

I also encountered the same problem, just the same with you, just the website, my website is: http://account.changyou.com/_login.jsp
Is for only one COOKIE, other how also can not get,
  • Related