I was told to never do write operations with GET request. and that search engines and other bots would follow and activate them. Assuming all write operations require a login would there be a problem having get request as a link?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Writing with a GET violates REST. There are more fundamental and philosophical reasons for doing this than just because a bot will follow them. That doesn’t mean that it’s not allowed though.
The reason a GET should not cause a write operation is that in a RESTful service, there is an implicit agreement that GETs are “safe”, and will not cause anything to happen remotely. A GET is just for getting information. If you want to send information, use POST.