15

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?

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.)

3
  • 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? 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 9 '12 at 21:53
  • @grawity just wanted to follow up, I read this answer: stackoverflow.com/questions/5416753/… 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! stackoverflow.com/questions/25189818/…
    – james
    Aug 18 '14 at 19:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.