添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
重感情的斑马  ·  c# Winform ...·  1 年前    · 
开朗的松鼠  ·  解决 out of memory ...·  1 年前    · 
爱吹牛的大熊猫  ·  python - ...·  1 年前    · 
不爱学习的电梯  ·  使用openCV ...·  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.