[ antp.be > Forum ]

[ FAQFAQ - SearchSearch - MemberlistMemberlist - UsergroupsUsergroups - ]

[ RegisterRegister - ProfileProfile - Log in to check your private messagesLog in to check your private messages - Log inLog in ]


About cookies

 
Post new topic   Reply to topic    www.antp.be Forum Index -> Ant Movie Catalog > Comments
Author Message
lalex100
PostPosted: 2007-06-29 07:48:21    Post subject: About cookies Reply with quote
View user's profile Send private message Please, change getscript.pas :

function GetPage(const address, referer, cookies: string): string;
var i: integer;
begin
GetScriptWin.http.Request.ContentType := '*/*';
GetScriptWin.http.Request.Referer := referer;
i := GetScriptWin.http.Request.CustomHeaders.IndexOfName('Cookie') ;
if i >= 0 then GetScriptWin.http.Request.CustomHeaders.Delete(i);
if cookies <> '' then
begin
GetScriptWin.http.Request.CustomHeaders.Values['Cookie'] := cookies;
end;
GetScriptWin.http.HTTPOptions := GetScriptWin.http.HTTPOptions - [hoKeepOrigProtocol];
and
AddFunction(@OnScriptRegProc, 'function Input(caption, prompt: string; var value: string): Boolean;', nil);
AddFunction(@OnScriptRegProc, 'function GetPage(address: string): string;', nil);
AddFunction(@OnScriptRegProc, 'function GetPage2(address: string; referer: string): string;', nil);
AddFunction(@OnScriptRegProc, 'function GetPage3(address: string; referer: string; cookies:string): string;', nil);
AddFunction(@OnScriptRegProc, 'function PostPage(address: string; params: string): string', nil);

This is allow use in script function getpage3 where 3d param is cookies string (example : 'uid=120; pwd=FHNHESW')
I recompile modified source - this WORK
http://rapidshare.com/files/39986362/getscript.zip_.html
http://rapidshare.com/files/39986326/MovieCatalog.zip_.html
antp
Site Admin
PostPosted: 2007-06-29 13:40:25    Post subject: Reply with quote
View user's profile Send private message Visit poster's website Hi,
Thanks for your contribution, I will include that in the program the next time that I compile it.
Display posts from previous:   
View previous topic :: View next topic  
Post new topic   Reply to topic    www.antp.be Forum Index -> Ant Movie Catalog > Comments All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
Template made by antp