| Author |
Trying to Redirect. 302 Error. HTTP CLIENT
|
Raihan Jamal
Ranch Hand
Joined: Mar 23, 2010
Posts: 85
|
|
What's wrong with this code. I am getting error on setRedirectStrategy and HttpContext as cannot be resolved to a type. And I am trying to redirect as I am always getting 302 error. So is this the right way to do it. Any example will be appreciated..
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Fix your imports. It's missing a few classes.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Raihan Jamal
Ranch Hand
Joined: Mar 23, 2010
Posts: 85
|
|
@Rob Spoor
Edited:- Updated One
After Some modifications in my code, Now I am getting error on setRedirectStrategy as
and error on DefaultRedirectStrategy as
and If I am adding this import to resolve the DefaultDirectStrategy error than I am getting red line on this import as
and error on super as the same as above one
And I am not able to know, what is wrong in this code. Any help will be appreciated. And I am trying to redirect as I am always getting 302 error. So is this the right way to do it. Any example will be appreciated..
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
DefaultRedirectStrategy is available since HttpClient 4.1. I suggest you upgrade your library.
|
 |
 |
|
|
subject: Trying to Redirect. 302 Error. HTTP CLIENT
|
|
|