This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing a POST request to a GET request  RSS feed

 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to change a POST request to a GET request before dispatching.

I have tried to pass the request and response objects to doGet() from doPost(), then use an HttpServletRequestWrapper and overriding the getMethod() implementation, but it does not help. The dispatcher always dispatcher a POST request.

I don't want to use a sendRedirect due to undesirable behaviors with my compression filter.
I might have to use URLConnection or an http client, which I really don't want to do.

Any idea?
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bah... resulted to using an http client.

Although the performance is really good, I am still looking for how to change a POST request to a GET request.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!