相关文章推荐
愉快的包子  ·  [Python]pyinstaller打包3 ...·  1 年前    · 
旅行中的硬盘  ·  ValueError: Excel ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

what is the best solution to resolve temporary redirect error code 307 in volley and retrofit?

Ask Question

I resolved this error code 307 issue by hitting first on base url and then getting the redirect url from response header and hitting on that redirect url in both volley and retrofit. In volley I used retry policy to hit on redirect url but in retrofit I handle this redirection manually.

   String redirectUrl=responseHeaders.get("location");

Is there any best solution to resolve this issue?Please help me out.

Try adding / at the end of your url as my answer at stackoverflow.com/questions/37892945/… to see if it can work for your issue or not – BNK Dec 2, 2016 at 6:51

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.