What should you do? I have no idea. Why don't you start by explaining what that code was supposed to do?
posted 9 years ago
@Paul Clapham, I am just trying to change the response header using JSP. As I am accessing URL on different domain and I am working locally.. as I have to get the response back from that server. So that's why I was trying to change the response header. Any idea how can I do this thing..
When you say you want to "change the response header" does that mean you want to set the value of a response header?
I also don't understand this:
As I am accessing URL on different domain and I am working locally.. as I have to get the response back from that server"
It sort of sounds like you expect to send a request to one server and find the response coming back from a different server, but even so you're using your JSP to send the response, so that doesn't seem to apply to anything here.