Doing everything by POST only

Hi everyone I am working on one single website which seems pretty simple and straightforward but I have no idea why my script is not working:/

The register is just 3 POST request to 3 link

1st POST request
modify url=www.test.com/generate/verificationCode
post data=url=&account=%your e-mail%&useType=0

after this request, the email should receive a verification code in below format.

驗證碼: 723326 ,使用了郵件驗證功能。【本驗證碼將在本次使用後自動失效,請勿把驗證碼告知他人】

2nd POST request
modify url=www.test.com/v1/checkCode
post data=account=%your e-mail%&code=%email_code% (723326 in this case)

After this request, the email should be deemed as verified on the server side.

3rd POST request
modify url=www.test.com/v1/auth/register
post data=username=%your e-mail%&password=%password%&email=%your e-mail%

This request is the final registration.

Now I am stuck with that SER cannot grab the code for 2nd step.
It seems it doesn't even log into the email to check :/

Any help would be appreciated.
[setup]
enabled=1
default checked=0

engine type=My Engine
description=Developed for a Project
dofollow=0
anchor text=1
creates own page=1
uses pages=0

fixed url= www.test.com
add keyword to search=0
use blog search=0
extract keywords=0

skip ext links on=0
skip content on=0
skip url content on=0

extract from email=email_code

;-------------------------------------------------------------------------
;the variables we have to define for this engine (if not already defined before)
;name, keyword, url, e-mail are already defined by default

;the form variables and how to fill them



[Password]
type=password
must be filled=1
hint=A password used for websites that need an account. Use numbers and letters only.
static=1

[Your E-Mail]
type=email

[email_code]
type=extract
front=: 
back=,
remove html=0

;---------------------------------------------------------------------------  
;the form variables and how to fill them

[REGISTER_STEP1]
just download=1
verify submission=0
verify by=extractemail
verify interval=1
first verify=0
verify timeout=140

[REGISTER_STEP2]
modify url=www.test.com/generate/verificationCode
post data=&account=%your e-mail%&useType=0
just download=1

[REGISTER_STEP3]
modify url=www.test.com/v1/checkCode
post data=account=%your e-mail%&code=%email_code%
just download=1

[REGISTER_STEP4]
modify url=www.test.com/v1/auth/register
post data=username=%your e-mail%&password=%password%&email=%your e-mail%
just download=1

Comments

  • SvenSven www.GSA-Online.de
    verify submission=0 << should be verify submission=1

    Thanked by 2Deeeeeeee ennis
  • Thanks @Sven !
    I changed
    verify submission=1
    the code= is still blank :(

  • SvenSven www.GSA-Online.de
    this front=: might be a bit too less. You should really use some more unique things here.
  • @Sven
    : <- it is possible that this thing is causing the error?
    ":" &  ":" is different
  • SvenSven www.GSA-Online.de
    oh you mean the extra space after the ":"...yes put it quotes. But still it's not unique I guess. In the email message you probably have more than one ": " if it's a html message.
  • Still not working:(
    In debug window, the code variable is blank

    It really seems that SER didn't even go to email and get the code since it run thru all step very fast..

    Thanks so much for your support @Sven.

    [email_code]
    type=extract
    front="驗證碼: "
    back=" ,您在 "
    remove html=0
  • SvenSven www.GSA-Online.de
    hmm no you cant use that unicode here, it should be plain utf8 encoding. but if you dont see email extraction in the debug-window, it is not even doing that.
    make sure the email withthe code uses the same domain as the website you submit to, else you need to use "verify url=<email domain>" as a dummy.
    Thanked by 1ennis
  • You are right!! They actually send the email with different domain!
    Now I have no idea where should I put this. When SER run into this step it shows no form at all and abort.
    verify url=gmail.com
    verify submission=1
    verify by=extractemail
    verify interval=1
    first verify=0
    verify timeout=140
  • SvenSven www.GSA-Online.de
    verify url=http://www.gmail.com << try this one
  • Still no email extraction in debug window :(

    [setup]
    enabled=1
    default checked=0
    
    engine type=My Engine
    description=Developed for a Project
    dofollow=0
    anchor text=1
    creates own page=1
    uses pages=0
    
    fixed url= http://test.com
    add keyword to search=0
    use blog search=0
    extract keywords=0
    
    skip ext links on=0
    skip content on=0
    skip url content on=0
    
    extract from email=email_code
    
    ;-------------------------------------------------------------------------
    ;the variables we have to define for this engine (if not already defined before)
    ;name, keyword, url, e-mail are already defined by default
    
    ;the form variables and how to fill them
    
    
    
    [Password]
    type=password
    must be filled=1
    hint=A password used for websites that need an account. Use numbers and letters only.
    static=1
    
    [Your E-Mail]
    type=email
    
    [email_code]
    type=extract
    front="驗證碼: "
    back=" ,您在 LeSports HK "
    remove html=0
    
    ;---------------------------------------------------------------------------  
    ;the form variables and how to fill them
    
    [REGISTER_STEP1]
    modify url=http://test.com/generate/verificationCode
    post data=&account=%your e-mail%&useType=0
    just download=1
    
    
    
    verify url=http://www.gmail.com
    verify submission=1
    verify by=extractemail
    verify interval=1
    first verify=0
    verify timeout=140
    
    [REGISTER_STEP2]
    modify url=http://test.com/v1/checkCode
    post data=account=%your e-mail%&code=%email_code%
    just download=1
    
    [REGISTER_STEP3]
    modify url=http://test.com/v1/auth/registerpost data=username=%your e-mail%&password=%password%&email=%your e-mail%
    just download=1
    The register go thru smoothly but the code is blank :/
  • SvenSven www.GSA-Online.de
    does the email have anything else in it than the code? Maybe a link to the website or the password/login ?
  • Just a sentence and a code:/
  • Possible to make this? Thank you :D
  • SvenSven www.GSA-Online.de
    well to go on with this i probably need the read script with read url to debug it.
  • @Sven
    I've send you the PM with the script, hope you don't mind <span>:wink:</span>

  • SvenSven www.GSA-Online.de
    i will look into this next week as im not in office over weekend.
  • <3 you bro
Sign In or Register to comment.