In magento 1.9.1 .0 I have made a few REST APIs and they work very well in my local machine. But When I moved the code to hosting environment, it is giving me 302 status code. I supposed the api itself is not working but while debugging I found that api functions well but in browser I get 302. A Similar question is here 302 Moved Temporarily. Googled much but nothing helped me!
How can I get it working? I welcome all constructive suggestions.Thanks a lot!