RECENT POSTS
- Introduction to FreeBSD Security Best Practices
- Working with Package Management in FreeBSD
- Understanding FreeBSD Security Advisories and Updates
- Troubleshooting Common System Administration Issues in FreeBSD
- Tips for Hardening FreeBSD to achieve System Protection
- Setting Up DHCP Server in FreeBSD
- Secure User and Group Management in FreeBSD Systems
- Secure Remote Access with SSH in FreeBSD
- Optimizing System Performance in FreeBSD
- Network Packet Capture with tcpdump in FreeBSD
- All posts ...
Do you have GDPR compliance issues ?
Check out Legiscope a GDPR compliance software, that will save you weeks of work, automating your documentation, the training of your teams and all processes you need to keep your organisation compliant with privacy regulations
P5-plack-middleware-methodoverride
Jul 20, 2023
Override REST methods to Plack apps via POST
Writing RESTful apps is a good thing, but if you’re also trying to support web browsers, you’re probably going to need some hackish workarounds. This module provides one such workaround for your Plack applications.
Specifically, you can also use a header named X-HTTP-Method-Override as used by Google for its APIs override the POST request method. Or you can add a parameter named x-tunneled-method to your form action’s query. Either way, the overriding works only via POST requests, not GET.
If either of these attributes are available in a POST request, the REQUEST_METHOD key of the Plack environment hash will be replaced with its value. This allows your apps to override any HTTP method over POST. If your application needs to know that such overriding has taken place, the original method is stored under the plack.original_request_method key in the Plack environment hash.
The list of methods you can specify are GET, POST, HEAD, PUT, DELETE, OPTIONS, TRACE and CONNECT.
- Older
- Newer
Checkout these related ports:
- Zope213 - Object-based web application platform Version 2.13
- Zola - Fast static site generator
- Zgrab2 - Fast Go application scanner
- Zerowait-httpd - Lightweight and fast http server
- Zenphoto - Simpler web photo gallery
- Zend-framework - Framework for developing PHP web applications
- Yuicompressor - The Yahoo! JavaScript and CSS Compressor
- Ytdl - YouTube downloader written in Go
- Yt-dlp - Command-line program for downloading videos from various platforms
- Youtube_dl - Program for downloading videos from various services
- Yourls - Your Own URL Shortener
- You-get - Dumb downloader that scrapes the web
- Yaws - Web server for dynamic content written in Erlang
- Yarr - Yet another rss reader
- Yarn - Package manager for node, alternative to npm (meta port)