I'm trying to use the curl command to access a http url with a exclamation mark (!) in its path. e.g:curl -v http://example.org/!287s87asdjh2/somepath/someresourcethe console replies with bash: ... event not found.What is going on here? and what would be the proper syntax to escape the exclamation mark?
Can't use exclamation mark (!) in bash?
bash;quoting;special characters
The exclamation mark is part of history expansion in bash.  To use it you need it enclosed in single quotes (eg: 'http://example.org/!132') or to directly escape it with a backslash (\) before the character (eg: http://example.org/\!132).