Results 1 to 3 of 3

Thread: http page processing

  1. #1
    Join Date
    Nov 2006
    Location
    in a house on lakemichigan
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default http page processing

    I would like to know more about how to use the functions in the manual on Internet functions

    more specifically how to open a page using InitializeHTTPClient
    how to read what what was loaded
    how to submit variables in a form from that page
    how to read the resulting page

    I know from reading others posts that there there is a growing interest in this type of functionality for use in games other than Runescape

  2. #2
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Hmm, let's see.

    I used to have an example program to spam a phishing site. It should answer your questions:

    PHP Code:
    program New;
    var 
    s:string;
    var 
    i:integer;
    begin
    InitializeHTTPClient
    (true,true);
    AddPostVariable(0,'name','Vuile');
    AddPostVariable(0,'lastname','Gristenhond');
    AddPostVariable(0,'card','13371337');
    AddPostVariable(0,'expm','13');
    AddPostVariable(0,'expy','1337');
    AddPostVariable(0,'pin','1337');
    repeat
    s
    :=PostHTTPPageEx(0,'http://isp.zsc.nl/css/cgi/pub/update.php');
    if 
    <> '' then
    begin
    inc
    (i);
    writeln('LoL! '+inttostr(i)+' times.');
    end;
    if 
    '' then
    begin
    writeln
    ('Fail.');
    end;
    until false;
    end
    If questions remain, feel free to ask. Why, if I may ask, do you want to use this?

    Edit: If you want to open a webpage in a new screen, use OpenWebpage('http://www.villavu.com');


  3. #3
    Join Date
    Nov 2006
    Location
    in a house on lakemichigan
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks that was Quick!!!

    Actualy thiere are many uses that Id like to interact with pages directly for like filling textfields and submitting buttons insted of clicking, textbox sendkeys... click submit and wait for page refresh

    What got me interested in using scar to parse the page directly was that it takes firefox a pretty fast brouser 1-5 seconds to load a page but with the scar function getpage i can get that same page in less than a second most times

    Sorry i tend to go on and on sometimes

    SO if what I'm seeing is rite then I can initialize a client
    InitializeHTTPClient(true,true);

    Load in the variables to post
    AddPostVariable(0,'zipcode','49424');

    and load the page that I want to post from
    s:=PostHTTPPageEx(0,'http://isp.zsc.nl/css/cgi/pub/update.php');

    s will contain the returned page?

    can i then if the returned page has the same form to get to another page can i

    ClearPostData( ? 0 Im guessing );
    AddPostVariable(0,'zipcode','49425');

    to get to another ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •