Forum Moderators: open

Message Too Old, No Replies

auto-refresh and POST

please help....

         

Ardeaem

12:04 am on Feb 6, 2002 (gmt 0)



I am writing a Perl script to create a page that needs to refresh itself. For now, I am using GET and <META HTTP-EQUIV="REFRESH" CONTENT="120"> together. I'd like, however, to use POST; but when the page refreshes, the script obviously was not sent any data. GET works great, but to avoid long URLs I'd like to use POST. Is there anyway I could get POST to work for my needs?

Thanks in advance.

Xoc

10:41 pm on Feb 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not that I'm aware of. The web browser responds to the Meta refresh, and always uses GET.

You could use JavaScript and set up a timer to repost to the page.

joshie76

2:23 pm on Feb 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The following script on your page will rePOST a page (in IE anyway, not tried it yet in any others)... though it's difficult to see how it would be used as I can't see how you might avoid an infinite loop.

<script>
window.location.reload()
</script>

- also, a refresh on a posted page will often result in a "Data Missing" response where the user will then have to manually refresh anyway, this is a security feature to prevent users having their data, unbeknown to them, submitted twice.