rest - 302 Redirect for RESTful API -


i setting restful api server, , requiring clients use https. best set block port 80 , return 'not found' requests http, or should redirect of these requests https? setup web servers this, concern how clients handle 302 redirect in restful calls. there best practice or recommended way handle this?

thanks!

a common approach here respond status code 403 forbidden , specify in response body secure connection required.


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Java JSoup error fetching URL -

webstorm - PhpStorm file cache conflict with TypeScript compiler -