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' );And then maybe try something like if login_page = 'thank' or something, it will return successful code = true ?SCAR Code:login_page := Between('<title> ','you', thanksyou);
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.






Reply With Quote





