Unanswered question

Error :"The request could not be understood due to malformed syntax.","error_code":1000".Can anyone pls suggest me?

I am working on a file upload script and facing the "malformed syntax" error. I have attached the error file. Please look into this and kindly tell me how to resolve this.

Hemanth K.
Hemanth K.

Hemanth K.

Level
0
32 / 100
points

Answers

Hemanth K.
Hemanth K.

Hemanth K.

Level
0
32 / 100
points

Below is the request:

POST https://xyz.com/otmmapi/v5/logentries/ HTTP/1.1
Host: xyz.com
Connection: keep-alive
Content-Length: 99
X-OTMM-Locale: en_US
Accept: text/plain, */*; q=0.01
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-By: 1621870014
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
x-dtpc: 1$466658774_735h79vPCLJSRCAUNHPDNSSLPJVLUOBPAVPARCQ-0e6
Origin: https://xyz.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://xyz.com/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: JSESSIONID=E3489DA87AED11480F066BAAAA29DB55.wotmm4002; AMDSESSIONIDCORS=719c5ab344dbfef69d625bed5122d0ee; AMDSESSIONID=719c5ab344dbfef69d625bed5122d0ee; rxVisitor=1610866636063J2L2AFLKIT3NNT1BA6DN5SHG0P55JOU4; dtCookie=v_4_srv_1_sn_9C793E3F78355EA6740B7DDB16641C7C_perc_100000_ol_0_mul_1_app-3A7f2d1d06d4e37e4e_1; JSESSIONID=F0B3E1A3A06A93E8258672F6608E90F6.wotmm4002; dtSa=-; dtLatC=1; rxvt=1610868719309|1610866636067; dtPC=1$466658774_735h79vPCLJSRCAUNHPDNSSLPJVLUOBPAVPARCQ-0e6

Request:
logentry=abc N/A selected 1 files for uploading&loglevel=INFO&module=Import

I can't be sure without a screenshot but the request looks like it's part of the URL, it includes spaces. shouldn't these be encoded using %20
so...
logentry=abc%20N/A%20selected%201%20files%20for%20 uploading&loglevel=INFO&module=Import

The question is why they are not there?

Hemanth K.
Hemanth K.

Hemanth K.

Level
0
32 / 100
points

Can you please elaborate what all you need. So that I will gather everything and provide them to you.