0040-00000029
Updated at:
Problem description
The Content-Length header in the Image Processing (IMG) request is invalid.
Causes
The value of the Content-Length header in the IMG request is not a digit.
Examples
GET /example_image?x-oss-process=image/format,jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
Content-Length: abc
In this example, the Content-Length value abc is not a digit, so the request fails.
Solutions
GET /example_image?x-oss-process=image/format,jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
Remove the Content-Length header from the IMG request.
Is this page helpful?