Lurker News
Back to discussion

Comment by zorked

zorked2 replies#
In countries where such laws exist, most of the same links that take you to a button will immediately unsubscribe instead. I guess IP addresses are used.
kevincox1 reply#
I'm having trouble following what you mean. How can IP address help? What is the point of a button if you are immediately unsubscribed anyways?
post-it#
The IP is used for geolocation. If the server detects that you're in a jurisdiction where clicking "unsubscribe" has to immediately unsubscribe you, the server does that, otherwise it shows you a button.
billpg2 replies#
I know why the button is there, as GET requests are not supposed to change state but POST requests can, and you can only make a GET request by clicking on a link in the email.

I'd be interested to see if that interpretation has been upheld by a court. Has anyone taken legal action arguing that the server should have used the GET request as the action to unsubscribe, not made the user click an extra button to get that POST request.

HideousKojima1 reply#
You can change state with a GET request. You aren't "supposed" to do it but there's no technical barrier preventing an unscrupulous company from effectively using the GET as a POST.
jcuenod2 replies#
Wait, what do scruples have to do with how you handle GET and POST?

Continue this thread — 2 replies