Intercept and manipulate proxy request #447
-
Is it possible to intercept the “Request’s Response” and fill HTML forms and auto submit for specific URL !! If this is possible, high level guidance/approach will be a great help for me. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Response body manipulation is something we do not plan first class support for, but it is possible through middleware. The ResponseCompressionMiddleware is the closest example I have for conditionally intercepting and altering the response. Note it avoids buffering the response to limit latency, but it might be simpler for you to buffer the response for specific urls, parse, edit, and resend. |
Beta Was this translation helpful? Give feedback.
Response body manipulation is something we do not plan first class support for, but it is possible through middleware.
The ResponseCompressionMiddleware is the closest example I have for conditionally intercepting and altering the response. Note it avoids buffering the response to limit latency, but it might be simpler for you to buffer the response for specific urls, parse, edit, and resend.
https://github.com/dotnet/aspnetcore/blob/master/src/Middleware/ResponseCompression/src/ResponseCompressionMiddleware.cs