modify POST flow to fit the request from Perl output