posted 19 years ago
The problem is that a HttpServletRequest is an object created by your servlet container - it is only valid inside that container. If you want to send a modified request to another server, you have to construct it "by hand". This means creating a URLConnection (really a HttpURLConnection), populating it with headers and connecting to the other server.
OR
Like Ben said, use the HttpClient toolkit - it will save you lots of time, manage cookies, etc. etc.
Bill