🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.pascal
4 messages
4 total messages Started by Terrmit Mon, 31 Dec 2007 17:01
[Lazarus] [Indy] Logowanie do strony https
#92355
Author: Terrmit
Date: Mon, 31 Dec 2007 17:01
25 lines
1632 bytes
Witam,

Nie mogąc dojść do ładu z LibCurl wziąłem się z logowanie
na stronę https. Dokładniej to chciałem się zalogować do Świstaka:
https://ssl.swistak.pl/login.html
Niestety nie udaje mi się.

Logowanie do http robię bez problemów. Sądziłem, że wystarczy
wrzucić na formę TIdSSLIOHandlerSocketOpenSSL i podpiąć pod
TIdHTTP:
IdHttP1.IOHandler := IdSSLIOHandlerSocketOpenSSL1;

Nie wystarczyło. Dodałem więc jeszcze:
IdSSLIOHandlerSocketOpenSSL1.DefaultPort:=443;
IdSSLIOHandlerSocketOpenSSL1.Port:=443;
IdSSLIOHandlerSocketOpenSSL1.Host:='https://ssl.swistak.pl/login.html';
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode:=sslmClient

I nadal nie loguje się. Ciągle zwraca stronę logowania.
Czy ktoś może wie, co trzeba jeszcze zrobić, żeby to logowanie
doszło do skutku?

Proszę o pomoc!

Sławek
Re: [Lazarus] [Indy] Logowanie do strony https
#92356
Author: webmajsterek
Date: Tue, 01 Jan 2008 11:14
38 lines
2192 bytes
> Witam,
> 
> Nie mogąc dojść do ładu z LibCurl wziąłem się z logowanie
> na stronę https. Dokładniej to chciałem się zalogować do Świstaka:
> https://ssl.swistak.pl/login.html
> Niestety nie udaje mi się.
> 
> Logowanie do http robię bez problemów. Sądziłem, że wystarczy
> wrzucić na formę TIdSSLIOHandlerSocketOpenSSL i podpiąć pod
> TIdHTTP:
> IdHttP1.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
> 
> Nie wystarczyło. Dodałem więc jeszcze:
> IdSSLIOHandlerSocketOpenSSL1.DefaultPort:=443;
> IdSSLIOHandlerSocketOpenSSL1.Port:=443;
> IdSSLIOHandlerSocketOpenSSL1.Host:='https://ssl.swistak.pl/login.html';
> IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode:=sslmClient
> 
> I nadal nie loguje się. Ciągle zwraca stronę logowania.
> Czy ktoś może wie, co trzeba jeszcze zrobić, żeby to logowanie
> doszło do skutku?
> 
> Proszę o pomoc!

podobny problem mialem z pobieraniem pod delphi i indy  i strona pepsi.wp.pl .

rozwiazanie 

1.wysylas prosbe do serwera o strone https .
w odpowiedzi dostajsz strone , ciasteczko i ewentualnie jakis numer sesji .

2. dalej logujesz sie juz jak na zwykla strone . --  wysylasz zapytanie post z
odpowiednio wypelnioneym formularzem .



-- 
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Re: [Lazarus] [Indy] Logowanie do strony https
#92357
Author: Terrmit
Date: Fri, 11 Jan 2008 12:22
33 lines
2217 bytes
webmajsterek@poczta.onet.pl pisze:
>> Witam,
>>
>> Nie mogąc dojść do ładu z LibCurl wziąłem się z logowanie
>> na stronę https. Dokładniej to chciałem się zalogować do Świstaka:
>> https://ssl.swistak.pl/login.html
>> Niestety nie udaje mi się.
>>
[ciach]
> 
> podobny problem mialem z pobieraniem pod delphi i indy  i strona pepsi.wp.pl .
> 
> rozwiazanie 
> 
> 1.wysylas prosbe do serwera o strone https .
> w odpowiedzi dostajsz strone , ciasteczko i ewentualnie jakis numer sesji .
> 
> 2. dalej logujesz sie juz jak na zwykla strone . --  wysylasz zapytanie post z
> odpowiednio wypelnioneym formularzem .
> 
Problem już rozwiązałem. Przeanalizowałem jeszcze raz stronę
logowania do Świstaka i okazało się, że wysyłałem formularz
logowania pod niewłaściwy adres. Trzeba było wziąć adres z
atrybutu action tagu <form>, a ja uparcie wysyłałem pod
https://ssl.swistak.pl/login.html
Jednak w między czasie udało mi się jako tako opanować
obsługę biblioteki CurlPas i teraz połączenia realizuję tą
biblioteką. Jest o niebo prostsza w obsłudze niż IdHTTP
i wygląda na to, że przy niej zostanę.
Tu należą się podziękowania dla Solarisa, który mnie na tą
bibliotekę naprowadził. Dzięki Solaris.

Sławek
Re: [Lazarus] [Indy] Logowanie do strony https
#92358
Author: Terrmit
Date: Thu, 24 Jan 2008 19:12
31 lines
2320 bytes
eyes of faith, Darius and Cyrus, Alexander,
the Romans, Pompey and Herod working, without knowing it, for the glory of
the Gospel!

702. Zeal of the Jewish people for the law, especially after there were no
more prophets.

703. While the prophets were for maintaining the law, the people were
indifferent. But, since there have been no more prophets, zeal has succeeded
them.

704. The devil troubled the zeal of the Jews before Jesus Christ, because he
would have been their salvation, but not since.

The Jewish people scorned by the Gentiles; the Christian people persecuted.

705. Proof.--Prophecies with their fulfilment; what has preceded and what
has followed Jesus Christ.

706. The prophecies are the strongest proof of Jesus Christ. It is for them
also that God has made most provision; for the event which has fulfilled
them is a miracle existing since the birth of the Church to the end. So God
has raised up prophets during sixteen hundred years, and, during four
hundred years afterwards, He has scattered all these prophecies among all
the Jews, who carried them into all parts of the world. Such was the
preparation for the birth of Jesus Christ, and, as His Gospel was to be
believed by all the world, it was not only necessary that there should be
prophecies to make it believed, but that these prophecies should exist
throughout the whole world, in order to make it embraced by the whole world.

707. But it was not 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads