When writing web apps I sometimes need to read request arguments. Of course people could specify a request argument zero, one or many times, but I generally expect just one instance. If I get a URL with multiple values for a given argument (eg /url?param=foo¶m=bar
) should I use the first argument, the last, or should I error out?
Aucun commentaire:
Enregistrer un commentaire