Results 1 to 3 of 3

Thread: Need help gettin a page.

  1. #1
    Join Date
    Nov 2006
    Location
    'Pergamino, BA, Argentina';
    Posts
    473
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Need help gettin a page.

    Okay, so i set up this script, what it does is basically enters a code via PostHttpPage into this page http://txn.fotolog.com/allopass_process_payment , and, if the code is okay, it will return this site: http://txn.fotolog.com/payment_success and it the code is incorrect, it will return this one http://txn.fotolog.com/allopass_process_payment
    And what i need to do is, have some function to know if the code worked or not, I was planning to make the script read the site's code and if it said the text "Thank" (/payment_success) it will know that the credit was correct, and if it said the text "problem" (/allopass_process_payment) it will know that it was incorrect.

    This is the way i tried to do it:

    SCAR Code:
    client:= InitializeHTTPClient( true, true );
        SetHTTPUserAgent( client, UserAgent );

        addpostvariable( client, 'allopass_token','m9426235');
        addpostvariable( client, 'phoneType', 'mobile');
        addpostvariable( client, 'locale', 'en');
        login_page := PostHTTPPageEx( client, 'http://txn.fotolog.com/allopass_process_payment' );
    SCAR Code:
    login_page := Between('<title> ','you', thanksyou);
    And then maybe try something like if login_page = 'thank' or something, it will return successful code = true ?

    If you didn't understand me, but you have any idea or can help me with any of the functions avobe, please add me to msn, i need this a lot. You will get credits in the script, plus, it means free money =) Ill release it when its ready.
    Thank you very much.

  2. #2
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    GetPage('www.google.nl');
    // results the html result of the page enterd

    Um IDK if that's possilbe with scar... anyway you van do ^ for page code viewing

  3. #3
    Join Date
    Nov 2006
    Location
    'Pergamino, BA, Argentina';
    Posts
    473
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by M4st3rK1ll View Post
    SCAR Code:
    GetPage('www.google.nl');
    // results the html result of the page enterd

    Um IDK if that's possilbe with scar... anyway you van do ^ for page code viewing
    Yea, but i need to get the page with some post vars, so i should use something like...
    SCAR Code:
    thepage := PostHttpPage( client, 'http://txn.fotolog.com/allopass_process_payment', thepage1);

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Login Page HELP!
    By P1nky in forum OSR Help
    Replies: 6
    Last Post: 04-15-2008, 12:55 AM
  2. help gettin error
    By cheater95 in forum OSR Help
    Replies: 5
    Last Post: 12-16-2007, 10:14 PM
  3. this page!!!!!
    By wcfrobert in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 07-04-2007, 01:50 AM
  4. Gettin' the mouse to move in srl.
    By petrock6 in forum OSR Help
    Replies: 3
    Last Post: 03-13-2007, 11:36 PM

Posting Permissions

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