Web not working right

I am trying to make a post request.

Here is curl command:

curl "https://shopwoodmans.com/api/digitalcoupon" -X POST -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0" -H "Accept: application/json, text/javascript, */*; q=0.01" -H "Accept-Language: en-US,en;q=0.5" -H "Accept-Encoding: gzip, deflate, br" -H "Content-Type: application/json" -H "TIMESTAMP: 1653841913715" -H "AUTH_TOKEN: SECRET/9XZxtCP4N2C79IFWD7fR0WD4elLL2ri4YJtA4JNBRd82XzpJ9NJOcftF9RT7u0YIeNbl+LoKgDFlSr4AyTqeBIYOFYkTOR8dEimBgiNqdyq0VqSxLBGA0MUWebKTxQK/2eAzg/mp4cIqumPazwSfsn96+Ld80Oys/nGuhohiSl4hBlpIRW9AcTGKriFxL2U1WLA6yo2QWRaD0dw==" -H "SESSION_ID: null" -H "SessionKey: 44c213ed-8f5b-4aa7-b1a2-061a1e2f188a" -H "CONNECTION_ID: null" -H "appVersion: 12528" -H "mode: InStore" -H "sourcepage: /" -H "storeID: faa23ea6-361b-4a72-af6c-8de0fc824276" -H "chainID: ca8b4c1f-09de-4179-bb88-b7495cfb4de1" -H "Origin: https://shopwoodmans.com" -H "Connection: keep-alive" -H "Referer: https://shopwoodmans.com/lakemoor" -H "Cookie: _gcl_au=1.1.641205510.1653841777; _msuuid_1gvot5esagu5g7=53F19A6C-3119-4FED-B3D2-CEC631C085B3; _ga=GA1.2.1231707118.1653841781; _gid=GA1.2.1117777350.1653841781; _clck=1g48x29|1|f1v|0; _clsk=p4mtxm|1653841899957|4|1|i.clarity.ms/collect; _fbp=fb.1.1653841783709.987580867; _uetsid=88763b20df6c11ec9987911368fa7332; _uetvid=88764bc0df6c11ecb79cab5eae861f7e; Auth_Token=SECRET"%"2F9XZxtCP4N2C79IFWD7fR0WD4elLL2ri4YJtA4JNBRd82XzpJ9NJOcftF9RT7u0YIeNbl"%"2BLoKgDFlSr4AyTqeBIYOFYkTOR8dEimBgiNqdyq0VqSxLBGA0MUWebKTxQK"%"2F2eAzg"%"2Fmp4cIqumPazwSfsn96"%"2BLd80Oys"%"2FnGuhohiSl4hBlpIRW9AcTGKriFxL2U1WLA6yo2QWRaD0dw"%"3D"%"3D" -H "Sec-Fetch-Dest: empty" -H "Sec-Fetch-Mode: cors" -H "Sec-Fetch-Site: same-origin" --data-raw "{""page"":1,""pagesize"":10,""orderby"":null,""Filters"":{""Filters"":[],""LastSelectedFilter"":null,""SearchWithinTerm"":null,""CouponFilter"":null}}"

(my token was changed dont worry)
I copied all headers and data into kodular.

However now I get a 500 error. But the curl works. So whats the difference?

Are you sure , Is your Json structure correct?

1 Like

Thank you I realized it was a different json it now works.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.