Текущий архив: 2004.03.14;
Скачать: CL | DM;
ВнизProblema s peredachei parametrov Найти похожие ветки
← →
Delphi5.01 (2004-01-06 19:14) [0]Dobroe vrema sutok esho raz!
Est sleduiushie dannie:
Form/Options
Action: http://www.sms.ge/index.php
Method: POST
Form/Send to other
Custom ISAPI, NSAPI, CGI, or ASP Scrtpt
<FORM name=LAYOUTFORM action= http://www.sms.ge/index.php method=POST>
<INPUT id="Forms Edit Field6" maxLength=12 size=12 name=username>
<INPUT id="Forms Edit Field2" type=password maxLength=12 size=12 name=password>
Kakim obrazom peredat eti dva parametra? Ili kak mojno uznat kakomu failu nado peredavat, mojet nado na CGI-BIN\Auth.cgi ili chtoto v etom rode! Ispoluiu IdHTTP komponent (Indy)
Spasibo
P.S. izvenite za translit
← →
Delphi5.01 (2004-01-07 12:24) [1]Ia uje peresharil i Mastack i Korolevstvo delfi no tam starie primeri, net ni odnogo s ispolzovaniem IdHTTP. v ruchnuiu cherez mou formu v html-e otsilka poluchaetsa, a kak sdelat cherez delphi metod post, esli daje ne znaesh ima cgi skripta, IE kakto etoje delaet!
Pojaluista pomogite.
Pleazeeeeeeeeeeeeeeeeeeeeeee
← →
Delphi5.01 (2004-01-08 07:38) [2]Uje daje pitalsa ispolzovat NMHTTP no i on ne rabotaet, ne prohodit avtorizacia, zadaval vopors na Flasher.ru no tam silno ne pomogli oni mne na html reshli problemu, i obiasnili tehnologiu, no eto ne podhodit dla Delphi.
Problema v tom chto dannie pereselautsa: Custom ISAPI, NSAPI, CGI, or ASP Scrtpt. ia tochno ne znau kuda, no oslik IE ispravno opredelaet! Daje s sohranonnoi na moi rabochi stol stranichki.
Pomogite Please
← →
Delphi5.01 (2004-01-08 17:48) [3]Neujeli ni kto ne mojet otvetit, chto eto takoi slojni vopros?
← →
Slym (2004-01-09 05:16) [4]var
Message:TStringList;
s:string;
begin
Message:=TStringList.Create;
Message.Text:="username=blabla&password=blabla";//blabla-url encoded text (%BA%EC - %HEXCode)
s:=idHTTP.Post(" http://www.sms.ge/index.php",Message);
← →
Slym (2004-01-09 05:20) [5]Usage: "FieldName=url_encoded_data" delimeter - & without any CR CL
← →
Delphi5.01 (2004-01-09 07:16) [6]Dobroe vrema sutok!
Izvenite uvajaemi Slym, mne dannaia stroka ni nachego ne namikaet, mojet to nado pomestit v socet? esli da to pojaluista neskolko slov chto imenno, sintaksis, pajaluista!
Spasibo za pomosh, jdu otveta
P.S. Slovo Usage oznachaet motod ispolzovania, gde ispolzuetsa, no ne ponatno gde imenno! Esli mojno dobavte neskolko slov.
← →
Delphi5.01 (2004-01-09 07:25) [7]Sorry ia ne zametil vach 4 otvet, no prochitav ego u mena poiavilsa vopros, vi imeete v vidu perevesti ver Message.Text v HEXCode, a znachit 16 razradnom izmerenii, tipa 1,2,3,4 .. A,B,C,D,E,F. I echo ne ochen horosho ponaten vash 5-ti otvet, pojaluista utochnite!
← →
Delphi5.01 (2004-01-09 08:10) [8]Ia zdelal kak vi skazali no k sojaleniu vixodit abstract error, mne kajetsa Post nemnogo otlichaetsa or posta v vashem primere! Privoju ves kod:
var i: Integer;
Msg: TStringList;
Text: String;
Buffer: array of char;
s: TStream;
begin
Msg:=TStringList.Create;
Text:="username=aaaaaa&password=bbbbbb";
Msg.Text:="";
for i := 1 to Length(Text) do
begin
try
Msg.Text:=Msg.Text+"%"+IntToHex(Ord(Text[i]),3);
except
Beep;
end;
end;
s:=TStream.Create;
form1.IdHTTP1.Post(" http://www.sms.ge/index.php",Msg,s);
SetLength(Buffer,S.Size);
S.Read(Buffer,S.Size);
for i:=0 to High(Buffer) do
form1.Text:=form1.Text+Buffer[i];
s.Free;
end;
Spasibo.
← →
Delphi5.01 (2004-01-09 18:40) [9]I snovo ia, pitalsa ispolzovr komponet NMHTTP no post vso ravno ne pomog, ne mogu proiti avtorizaciu, mojet oshibka v kode?
Страницы: 1 вся ветка
Текущий архив: 2004.03.14;
Скачать: CL | DM;
Память: 0.46 MB
Время: 0.011 c