If I receive an email in any email client be it Outlook, GMail, etc and the email contains a link to a website, is it possible to perform a POST request to the website as opposed to a GET request?
Asked
Active
Viewed 3.1k times
1 Answers
10
For information retrieval, including links made with <a href>, only GET can be used.
If you want POST for whatever reason, you'll have to create a <form method="post"> with a submit button. (And think carefully about whether you need it; it's an ugly way to track users, and it's uncacheable.)
u1686_grawity
- 426,297
- 64
- 894
- 966
-
So I can create a form post action/method into a HTML email that is received by an email client? Would there be any issues? What do you mean by it is uncacheable? – PeanutsMonkey Jan 25 '12 at 21:43
-
Both get and post can only be targetted as something that understands http requests - so a web server. An email client could not be the target. – Paul Feb 09 '12 at 21:53
-
@grawity just wanted to follow up, I read this answer: http://stackoverflow.com/questions/5416753/can-i-put-both-get-and-post-url-link-in-an-email that implies that POST will not work. And I have my own question about this where I've followed your method, and for whatever reason the request still reads as GET and doesn't go through. There's a bounty on it, would really appreciate your help! http://stackoverflow.com/questions/25189818/button-to-in-email-not-posting – james Aug 18 '14 at 19:07