rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: raybob on April 30, 2011, 08:01:17 PM

Title: posting variables with {.redirect.}
Post by: raybob on April 30, 2011, 08:01:17 PM
Can you make it so that there is a way to post variables to a page that is getting redirected to?

Here's an example of what I'm talking about:

{.redirect|http://www.domain.tld|variablename=content.}
Title: Re: posting variables with {.redirect.}
Post by: Mars on May 01, 2011, 09:17:44 PM
add variables inside url
{.redirect|http://www.domain.tld/?variablename=content&variable2=content2&variable3=....... .}
Title: Re: posting variables with {.redirect.}
Post by: raybob on May 02, 2011, 02:53:13 AM
I know you can do that, but for certain things I would much rather use posted variables rather than URL variables, which is why I wrote this.
Title: Re: posting variables with {.redirect.}
Post by: rejetto on May 02, 2011, 05:37:58 PM
http redirection is only GET, no POST.
if you strictly need POST only thing you can do is outputting a page with an automatic POST via javascript.
Title: Re: posting variables with {.redirect.}
Post by: raybob on May 02, 2011, 09:31:39 PM
Ok thanks I didn't know it was a limit of http itself . . .