Hi,guys.I have 1 question on the rest api redirection problem,hope you guys can help me to solve this problem,thanks.

My question is:
How to i embed the redirection script into the response api?
eg,The user call http://domain.com/api=redirect&keyword= 'bla,bla,bla,bla'.
What i want to do is to force the user to redirect to another url automatically when the user call rest api request like above?any idea or suggestion?is that simply include the javascript redirection into the response data will force the user redirect to another url?

Depends on how the user calls your URL. If he uses cUrl then there is no way to force a redirect.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.