Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6597385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:12:07+00:00 2026-05-25T18:12:07+00:00

Some web frameworks offer the possibility to override the HTTP method with a hidden

  • 0

Some web frameworks offer the possibility to “override” the HTTP method with a hidden form field:

<form method="POST">
  <input type="hidden" type="_method" value="PUT">
  ...
</form>

Is it possible to override the HTTP method with the Play framework?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:12:08+00:00Added an answer on May 25, 2026 at 6:12 pm

    NOTE: This is for Play 1.x only.

    Looking at the source code for the Router.route() method, it uses the x-http-method-override parameter in the query string. According to this bug report you should also be able to achieve this using HTTP Headers, but I couldn’t see this in the source code.

    To get it to work, you need to add the override to the request string. I ran the following example to get it to work.

    <form action="@{Application.form}?x-http-method-override=PUT" method="POST">
      <input type="submit" type="go" value="go">
    </form>
    

    If you set the logging level to TRACE, you will see the following output, showing the method has changed. You should see an output like —

    08:20:34,855 TRACE ~ init: begin
    08:20:34,858 TRACE ~ Route: /application/form - x-http-method-override=PUT
    08:20:34,859 TRACE ~ request method POST overriden to PUT
    08:20:34,860 TRACE ~ ------- public static void controllers.Application.form()
    08:20:34,861 TRACE ~ init: end true
    

    You can also check the request.method in your controller to confirm.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Freemarker documentation notes: ...some Web Application Frameworks don't use FreemarkerServlet, so include_page is
I am evaluating some web application frameworks out there, and finally, two of the
Hi I am looking for some web framework for my prject and I found
Some web applications, like Google Docs, store data generated by the users. Data that
Some web apps 'by design ' don't function well when user's hit the back
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been
We have some web pages which have two frames, with one frame in the
I'm currently maintaining some web server software and I need to perform a lot
I'm hosting some web content in a WPF app using the WebBrowser control (or
I want to do some web scraping with GAE. (Infinite Campus Student Information Portal,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.