Differentiate Client & browser http call

26 views
Skip to first unread message

Avi

unread,
Sep 26, 2013, 12:54:39 AM9/26/13
to rubyonra...@googlegroups.com
Hello All,

How can I differentiate the call between client ios app & browser call?

session_controller - create method is being used by both client & rails web application.
I want to restrict for web application to use create method.

how can I achieve this?


Thanks,
Avi

Robert Walker

unread,
Sep 26, 2013, 10:00:32 AM9/26/13
to rubyonra...@googlegroups.com
Avi wrote in post #1122484:
Check the user-agent string. Just keep in mind that it's possible for
clients to change that, but AFAIK that's the only way the web server has
to identify the client.

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages