Новичок
Профиль
Группа: Участник
Сообщений: 9
Регистрация: 28.1.2007
Репутация: нет Всего: нет
|
Не логинится все равно  Посмотрите плиз, могут ли быть какие-нибудь ошибки? | Код | url := 'http://site.ru/register/login2.phtml?redirect=http://site.ru/index.phtml'; s1 := TStringList.Create; s1.Add('login=login1'); s1.Add('password=pass1'); IdHTTP1.Post(url,s1); s1.Free;
|
программа выдает: | Код | POST /register/login2.phtml?redirect=http://site.ru/index.phtml HTTP/1.0 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 26 Host: site.ru Accept: text/html, */* Accept-Encoding: identity User-Agent: Mozilla/3.0 (compatible; Indy Library)
login=ww00&password=111111HTTP/1.1 302 Found Server: nginx/0.5.8 Date: Sun, 28 Jan 2007 19:24:43 GMT Content-Type: text/html; charset=windows-1251 Connection: keep-alive Keep-Alive: timeout=20 X-Powered-By: PHP/4.4.2 Set-Cookie: DELITID=3bed2ec590d33215b8413f331cd00119; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Location: http://site.ru/register/login2.phtml?redirect=http://site.ru/index.phtml&err=1 Content-Length: 0
GET /register/login2.phtml?redirect=http://site.ru/index.phtml&err=1 HTTP/1.0 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Host: site.ru Accept: text/html, */* Accept-Encoding: identity User-Agent: Mozilla/3.0 (compatible; Indy Library) Cookie: DELITID=3bed2ec590d33215b8413f331cd00119
HTTP/1.1 302 Found Server: nginx/0.5.8 Date: Sun, 28 Jan 2007 19:24:44 GMT Content-Type: text/html; charset=windows-1251 Connection: keep-alive Keep-Alive: timeout=20 X-Powered-By: PHP/4.4.2 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Location: http://site.ru/index.phtml Content-Length: 0
GET /index.phtml HTTP/1.0 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Host: site.ru Accept: text/html, */* Accept-Encoding: identity User-Agent: Mozilla/3.0 (compatible; Indy Library) Cookie: DELITID=3bed2ec590d33215b8413f331cd00119
HTTP/1.1 200 OK
|
Браузер выдает: | Код | GET /register/login2.phtml?redirect=http://site.ru/index.phtml&login=ww00&password=111111 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, application/x-gsarcade-launch, */* Accept-Language: ru UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser; .NET CLR 1.1.4322) Host: site.ru Connection: Keep-Alive
HTTP/1.1 302 Found Server: nginx/0.5.8 Date: Sun, 28 Jan 2007 19:35:16 GMT Content-Type: text/html; charset=windows-1251 Connection: keep-alive Keep-Alive: timeout=20 X-Powered-By: PHP/4.4.2 Set-Cookie: DELITID=4c6de88bbb22012fca8fbb82343319e9; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Location: http://site.ru/register/login2.phtml?redirect=http://site.ru/index.phtml&login=ww00&password=111111&err=1 Content-Length: 0
GET /register/login2.phtml?redirect=http://site.ru/index.phtml&login=ww00&password=111111&err=1 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, application/x-gsarcade-launch, */* Accept-Language: ru UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser; .NET CLR 1.1.4322) Host: site.ru Connection: Keep-Alive Cookie: DELITID=4c6de88bbb22012fca8fbb82343319e9
HTTP/1.1 302 Found Server: nginx/0.5.8 Date: Sun, 28 Jan 2007 19:35:16 GMT Content-Type: text/html; charset=windows-1251 Connection: keep-alive Keep-Alive: timeout=20 X-Powered-By: PHP/4.4.2 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: login=ww00; expires=Tue, 27 Feb 2007 19:35:16 GMT; path=/ Set-Cookie: phpbb2mysql_sid=deleted; expires=Sat, 28 Jan 2006 19:35:15 GMT; path=/bb/ Set-Cookie: phpbb2mysql_data=deleted; expires=Sat, 28 Jan 2006 19:35:15 GMT; path=/bb/ Set-Cookie: phpbb2mysql_t=deleted; expires=Sat, 28 Jan 2006 19:35:15 GMT; path=/bb/ Location: http://site.ru/index.phtml Content-Length: 0
GET /index.phtml HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, application/x-gsarcade-launch, */* Accept-Language: ru UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser; .NET CLR 1.1.4322) Host: site.ru Connection: Keep-Alive Cookie: DELITID=4c6de88bbb22012fca8fbb82343319e9; login=ww00
HTTP/1.1 200 OK Server: nginx/0.5.8 Date: Sun, 28 Jan 2007 19:35:16 GMT Content-Type: text/html; charset=windows-1251 Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=20 X-Powered-By: PHP/4.4.2 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache
|
Добавлено @ 22:47 с куками точно ничего делать не нужно?
|