Im using this code in my command prompt to test if i can have the authorization to send data to the given url to me.
curl --header "Authorization":"base64" -H "Content-Type: text/html; charset=UTF-8" -H "Accept: application/json" -X POST -d '{"firstname":"test","lastname":"test","mobile_number":09999999999,"education":"Bachelor's Degree","email":"test@gmail.com","job_opening_id":123}' https://www.test.com -v
but i think it cannot receive POST method datas because of this:
< HTTP/1.1 405 Method Not Allowed
< Server: nginx/1.13.12
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< allow: GET, HEAD
< Cache-Control: no-cache, private
the allow header has only GET and HEAD method if what i think is correct it really wont accept datas from me.
but when i only run this code:
curl --header "Authorization":"base64" https://www.test.com -v
it will run properly but i cant send datas that way. so my question is what am i doing wrong ? or if it is the allow header that is causing the problem. Thanks mates !