<div dir="ltr"><div>You should protect the URL with single quotes, to avoid the interpretation of character ! by the shell:</div><div><br></div>curl -A iPad -i '<a href="https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J" rel="noreferrer" target="_blank">https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J</a>'<br><div class="gmail_extra"><br></div><div class="gmail_extra">But if you put the URL <a href="https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J" rel="noreferrer" target="_blank">https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J</a> in a browser (at least in Firefox), the browser sends to the web server only the first part of that URL:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    <a href="https://www.domain.com/" target="_blank">https://www.domain.com/</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">because the character # is a special one.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Surprisingly, curl sends the full URL to the webserver.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Greetings,<br><br></div><div class="gmail_extra">Oscar<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 5, 2015 at 9:31 PM, ramsoft75 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi there<br>
<br>
I changed to<br>
<span><br>
#to detect if the device with www entered in domain is mobile<br>
if ($http_user_agent ~* '(iPhone|iPod|iPad|Android|BlackBerry|webOS|Windows<br>
Phone)') {<br>
</span>rewrite ^ <a href="http://m.domain.com" rel="noreferrer" target="_blank">http://m.domain.com</a>$request_uri;<br>
}<br>
<br>
I executed the command :<br>
<br>
$ curl -A iPad -i <a href="https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J" rel="noreferrer" target="_blank">https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J</a><br>
<br>
And the result was :<br>
<br>
-bash: !/pt/--item-view/pt/32081/Mix-J: event not found<br>
<br>
This only append's with Safari, there's no problem with Chrome (Desktop,<br>
Mobile) or Internet Explorer in Pc, could this be a browser problem and not<br>
an Nginx configuration problem ?<br>
<br>
Thanks<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,260033,260064#msg-260064" rel="noreferrer" target="_blank">http://forum.nginx.org/read.php?2,260033,260064#msg-260064</a><br>
<div><div><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Oscar Fernandez Sierra<br><a href="mailto:oscaretu@gmail.com" target="_blank">oscaretu@gmail.com</a></div>
</div></div>