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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -