HTTP post how can I get this to work?
Last Post 12-07-2011 06:43 PM by Chad Nash. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
sentientUser is Offline
river guide
river guide
Posts:127
Avatar

--
12-04-2011 07:00 PM
    Okay I need to make a HTTP post and on submit go to the url: Basically I need to replicate this: (which works fine as standard HTML)

    {input type="hidden" name="token" value="b408035a727983360a3196bb00f3bc403b876773"}
    {input type="hidden" name="direct" value="true"}
    Domain: {input type="text" name="domain"} 
    {select name="ext"}
    {option}.com{/option}
    {option}.co{/option}
    {option}.net{/option}
    {option}.co.nz{/option}
    {/select}
    {input title="submit" onclick="this.form.method='post'; this.form.action='https://www.mysite.co/checker.php';this.form.submit();" type="submit"}
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    12-06-2011 03:23 PM
    Hi There...

    You would need to setup an HTTP Post event and choose the option as the post URL to be:
    https://www.mysite.co/checker.php

    Then from there set the Post URL Parameters to be something like this:
    token=b408035a727983360a3196bb00f3bc403b876773&direct=true

    Etc... Each parameter you pass needs to be &ParameterNAme=ParameterValue in the Post URL's. KEep in mind the very first parameter listed does not/should not include an & symbol.

    Thanks!

    -Chad
    sentientUser is Offline
    river guide
    river guide
    Posts:127
    Avatar

    --
    12-06-2011 06:35 PM
    Okay but It needs to redirect to the url. I get an email with the html of the destination page and it looks like the post works but it does nothing on the form as it requires the redirect.
    The html version redirects fine.
    Any ideas?
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    12-07-2011 06:43 PM
    Hi. Well the actually HTTP Post via ASP.NET doesn't allow for both a Post and a Redirection.

    I think you can just use the Redirection completion event.... or the general settings "Redirect URL" and within these you can have the options enabled to pass these parameters as querystring variables. You can also use $(Tokens) directly within the URL's.

    This does require that your module allow for querystring variables though and not form post variables so before you go this route you might want to research this regarding the page you are posting too.

    -Chad



    -Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi