Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
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 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 at 19:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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