LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-15-2008, 08:20 AM   #1
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Rep: Reputation: 33
meta refresh with a post


Hi, i'm trying to do a redirect whilst also passing some POST variables, using html meta redirect...
Code:
<html><head>
<meta http-equiv="refresh" content="2; URL=tmp.html">
<meta http-equiv="Content-Type" content="application/x-www-form-urlencoded; charset=UTF-8">
<meta name="method" content="POST" />
<meta name="postData" content="submit=true&cmd=HI" />
</head><body>
<h2>TEST</h2>
</body></html>
This is similar to another post of mine, http://www.linuxquestions.org/questi...=1#post3023173, but it is purely html meta based.

Last edited by rubadub; 01-15-2008 at 08:20 AM. Reason: Link was messed up!
 
Old 01-16-2008, 06:43 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
This isn't going to work either. A META refresh uses the HTTP-EQUIV attribute, which, by definition, does the same thing as the equivalent HTTP header. If you can't do it with genuine HTTP headers, a META tag isn't going to be any different.

I think you'd probably be better off exploring an alternate approach. Perhaps if you tell us what problem you're trying to solve by using a "redirect with POST" then someone will be able to suggest an acceptable method.
 
Old 01-18-2008, 09:33 AM   #3
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Original Poster
Rep: Reputation: 33
I was developing a payment confirmation page and thought this would make things cleaner. Yes i've worked around it already but I just wanted exhaust working out a solution. I can understand why it's not allowed but y'know, gotta try...

Cheers for all help and suggestions...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
meta char and sed kaz2100 Programming 3 02-02-2007 02:57 PM
meta includes help. cramer Programming 1 12-05-2006 02:50 PM
Xterm and meta characters Khabi Linux - Software 1 09-20-2005 04:31 PM
Java : Meta variables ? pycoucou Programming 7 04-16-2004 03:46 AM
meta keys: è ê á and so forth ... wuck Linux - Software 2 10-17-2003 01:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration