programming languages - how can I use colon instead of question mark in url query? -
for example image:
https://pbs.twimg.com/media/bfmdua5ccaamcbl.jpg
then add color symbol send query string:
https://pbs.twimg.com/media/bfmdua5ccaamcbl.jpg:large https://pbs.twimg.com/media/bfmdua5ccaamcbl.jpg:small
i googled twitter image
what coding language can achieve this?
php? ruby on rails?
or htaccess rewrite rule?
any.
it has nothing programming languages, cgi: http://en.wikipedia.org/wiki/common_gateway_interface
the colon not valid part of cgi spec, server receiving request parse in code.
note though cgi spec defines '&' separator between different variable/value pairs, results in incorrect (x)html when used in <a> tags. because doesn't define valid entity. remedy this, @ least in php, can change separator: http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
Comments
Post a Comment