Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setfollowedredirects(urgent)  RSS feed

 
Raghu Veer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
Do anyone knows : how to setfollowedredirects property of http connection to false.

help me out.

Thanks in advance.

Raghu
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you should use the setRequestProperty() in HttpConnection.

eg
 
please buy my thing and then I'll have more money:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!