curl -i -X POST -H "Authorization: Basic Nzc5NzcyNzU0MDpzb3VtZW4xMjM=" http://127.0.0.1:8000/job_post/ --data '{"job_description":"Python Developers"}'
Here I'm passing the data of job_description but still I'm getting an error like: *HTTP/1.1 400 Bad RequestDate: Tue, 04 Feb 2020 11:12:05 GMTServer: WSGIServer/0.2 CPython/3.8.1Content-Type: application/jsonVary: AcceptAllow: GET, POST, PUT, DELETE, HEAD, OPTIONSX-Frame-Options: SAMEORIGINContent-Length: 47{"job_description":["This field is required."]}* Could you tell me why I'm getting this error? but in POSTMAN it is woking properly. On Tue, Feb 4, 2020 at 4:11 PM Kasper Laudrup <laud...@stacktrace.dk> wrote: > Hi Soumen, > > On 04/02/2020 09.01, Soumen Khatua wrote: > > Hi Folks, > > > > Actually now I'm usng POSTMAN for all operation like GET,POST,PUT,PATCH > > and DELETE. But I want to do the same thing by using Curl Command, Could > > anyone tell me what are the commands for CURL.I'm providing my end point > > below and most important I'm using Basic Authentication. > > > > The official CURL documentation seems like an obvious place to look: > > https://curl.haxx.se/docs/ > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b84ba68c-993b-ea0b-7def-1bade72c8031%40stacktrace.dk > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6Wb2TbBQyftM5pqNeRveXTWZ5qM1D8d8nFk_LqbDCJKGnA%40mail.gmail.com.