News for hackers. Stuff that matters.
Re:Https URLs posted in private Skype chats visited by Micro... by VikingCoder on Tuesday May 14, 2013 @11:55AM (#5705738)
Worse, you make it destruction.

"Bob, if you should ever need to delete 100% of the content that I've created for you, you would follow this URL. Let me be clear, it will destroy USD $1,000,000 worth of goods."

Re:Https URLs posted in private Skype chats visited by Micro... by oinksoft on Tuesday May 14, 2013 @12:02PM (#5705799)
Well per the HTTP standard, GET requests should be idempotent. I kid, but imagine seeing pompous development advice stapled to official justification for some internet sleuthing!
Re:Https URLs posted in private Skype chats visited by Micro... by eyeface on Tuesday May 14, 2013 @01:18PM (#5706369)
Do you mean that GET requests shouldn't modify data? A URL that deletes everything would be idempotent; if it's hit once, it's the same effect as if it's hit many times.
Re:Https URLs posted in private Skype chats visited by Micro... by oinksoft on Tuesday May 14, 2013 @01:53PM (#5706669)
Yes. Idempotency is just one property of the GET request, what parent described would be a DELETE request (these too are idempotent). So I could have been more precise and funny with that joke, I guess.
Re:Https URLs posted in private Skype chats visited by Micro... by gleenn on Tuesday May 14, 2013 @01:30PM (#5706471)
If you RTFA, it looks like it isn't even doing a GET, its doing a HEAD request.
Re:Https URLs posted in private Skype chats visited by Micro... by mschuster91 on Tuesday May 14, 2013 @01:36PM (#5706527)
So what, many PHP apps don't check for the HTTP type, and even less Perl/other CGI scripts.

Never rely on your environment to differ between the various HTTP methods for you.

Re:Https URLs posted in private Skype chats visited by Micro... by andreyf on Tuesday May 14, 2013 @01:08PM (#5706292)
I didn't realize this was part of a standard. Could you link to the section you're referring to?
Re:Https URLs posted in private Skype chats visited by Micro... by jschulenklopper on Tuesday May 14, 2013 @01:47PM (#5706612)
From RFC 2616 (Fielding et al) at http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

"In particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval. These methods ought to be considered "safe". This allows user agents to represent other methods, such as POST, PUT and DELETE, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested."

The document section also makes a distinction between "safe" and "idempotent" methods. That's not the same thing.

Re:Https URLs posted in private Skype chats visited by Micro... by iguana on Tuesday May 14, 2013 @03:22PM (#5707384)
Lots of web apps are still implemented along the lines of: GET /foo?action=delete&item=x

A less naive implementation would also include a crumb to mitigate CSRF as well as unintentional access.

Re:Https URLs posted in private Skype chats visited by Micro... by vidarh on Wednesday May 15, 2013 @04:22AM (#5710791)
Yes, and you regularly see notes about how [some bot] has caused some developer to learn why this is bad practice whenever a link like that gets accidentally exposed in a way that allows crawling.
Re:Https URLs posted in private Skype chats visited by Micro... by wolf550e on Wednesday May 15, 2013 @04:51AM (#5710863)
popular web browsers prefetch links.
Re:Https URLs posted in private Skype chats visited by Micro... by adolph on Tuesday May 14, 2013 @01:36PM (#5706528)
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request. The methods GET, HEAD, PUT and DELETE share this property.

Re:Https URLs posted in private Skype chats visited by Micro... by Groxx on Tuesday May 14, 2013 @01:29PM (#5706459)