To send log file, made by base64 encoding, I Already set Web Proxy like image. And set outbound request transform like this
{
“req”: “web.post”,
“route”: “log-test-server”,
“body”: {
“fileBase64”: body.fileBase64 ~> $default(“”),
“name”: body.name,
“deviceName”: body.deviceName ~> $default(“noName”)
}
}
Send file to server, i got a error log:
{“Allow”:[“GET, HEAD”],“Cache-Control”:[“no-cache, no-store, max-age=0, must-revalidate”],“Content-Type”:[“application/json;charset=UTF-8”],“Date”:[“Thu, 02 Oct 2025 11:53:07 GMT”],“Expires”:[“0”],“Pragma”:[“no-cache”],“Server”:[“Apache/2.4.58 (Ubuntu)”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“DENY”],“X-Xss-Protection”:[“1; mode=block”]}
At server i got a error log: 2025-10-02 11:53:07.566 WARN 1216356 — [io-8099-exec-10] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST’ not supported]
I set spring controller:
@RequestMapping(value = "/free/upload", method = RequestMethod.POST)
Why this situation occured? And How to solve this situation?
