My application( asp.net core 6) is deployed in a private cloud and works very well under IIS until now the cloud service has banned all PUT and DELETE requests. I have to convert them. I will convert PUT to POST on the client side and customize CUSTOM_METHOD:PUT so that it can pass through the cloud service gateway, I wanted to get to the server and use the IIS Rewrite to change HTTP_METHOD to PUT so I wouldn't have to change the code, but I found it didn't work very well. I log that IIS Rewrite has changed HTTP_METHOD to PUT, but my asp.net core 6 is still receiving POST, which my restful API can't handle.

IIS Rewrite for asp.net core,HTTP_METHOD unuse?
126 Views Asked by 小王虎 At
1
There are 1 best solutions below
Related Questions in HTTP
- Handling both JSON and form values in POST request body with unknown values in Golang
- Why can't I use PUT requests?
- nginx set up reverse proxy from subfolder to a port
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- Getting `FormatException: Missing extension byte (at offset 6)` exception for accessing `response.body` from a server deployed in Vercel
- Retrieving list of values from MYSQL data base based on input value(LARAVEL 10 )(GET HTTP METHOD)
- Unable to add request headers via CHttpFile - C++/MFC
- Why do we call all http services 'Web Api/Web Service'?
- How to correctly read POST REQUEST body on ESP32?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Elasticsearch - cascading http inputs from Airflow API
- How to clean the html pages opened in a session?
- UTF-8 is not a valid encoding name
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- NextJS 14 SSE with TransformStream() sending messages in a single response
Related Questions in URL
- how do I change a URL with form to include additional selection
- Blog Post URL In flutter Web
- Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- Curl URL syntax for uploading files
- Send a json command to an app at a known port/address?
- How do I resolve this error ? "ERR_TOO_MANY_REDIRECTS"
- I'm using the googlesearch library in Colab, but I can't import my websites to a list. How can I do that?
- Sharepoint document library URL Rewrite
- Apache2 redirection results in wrong URL
- Vue / Vitest : issues in snapshots with dynamic import assets URL
- How to redirect to the landing page when the domain name is searched?
- find out filename from URL
- How do I ping a website to see if its valid before entering?
- Unable to download CSV file from web URL with runtime using python
Related Questions in IIS
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- IIS Rewrite Module exclude bots but allow GoogleBot
- How to deploy angular 17 SSR into IIS
- IIS web site with httpplatformhandler on specific route does not redirect to the nextjs site
- Why is 'EDITBIN /STACK:2097152 w3wp.exe' cmd is giving me an LNK1342 error?
- Primeng Angular styles on subdomain don't work
- Apps migrated from IIS server1 to another IIS server2 stopped communicating with an App on IIS server 1 via SSL (HTTPS)
- How to authenticate with REST API service on IIS using pass-through authentication in Python?
- ASP.NET Core 8 is missing from application pool selection after install
- Azure Application Gateway ByPass
- SSL certificate is installed on iis and website but in browser is unknown
- Redirect to another site but show the original URL in browser
- Problem in hosting React App with react-router-dom on IIS Server
- Django Channels on IIS
- ASP.NET Core/Angular17 application files does not load when published in IIS
Related Questions in HTTP-PUT
- How can I make a PUT request to Trello API in rails project?
- how to tell dotnet core version 7 UserManager to update it's security certificate to a new key
- Webhook vs HTTP POST/PUT?
- PUT vs POST - correct response code if already completed
- Angular http put request does not work and gives me an error 500
- Shall is use PUT for updating all 100 Fields in Employee table and Patch for updating 99 Fields?
- IIS Rewrite for asp.net core,HTTP_METHOD unuse?
- Django with Javascript fetch API: POST works but all other unsafe methods are forbidden
- JavaScript web server receive PUT requests
- Axios PUT request with header payload and Basic Authntication fails
- Upload file at pre-signed URL using HttpPut method contains extra unnecessary part
- DbContext Update vs EntityState Modified
- How to perform HTTP Put Request in Python like C# HttpClient
- HTTP DELETE and PUT methods are showing during http OPTIONS method request even after disabling
- How can I have my HTTP PUT routes treated the same way as PATCH routes?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Instead of trying to change
HTTP_METHOD(which you cannot unfortunately), you have to modify your code to use what Microsoft recommended, the header ofX-HTTP-Method-Override.It was initially documented in details in ASP.NET 4.x, and later echoed in ASP.NET Core as a less documented middleware.