Re: converting CURL command

2022-08-21 Thread Ryan Nowakowski
In the past I've used subprocess.run to shell out and run curl. Those were weird circumstances though. Typically I use the requests library instead. On August 21, 2022 2:27:02 PM PDT, "lone...@gmail.com" wrote: >Hello all, > > I am interested in converting the CURL co

Re: converting CURL command

2022-08-21 Thread Sebastian Jung
https://reqbin.com/req/python/c-xgafmluu/convert-curl-to-python-requests Am So., 21. Aug. 2022 um 23:27 Uhr schrieb lone...@gmail.com < loneso...@gmail.com>: > Hello all, > >I am interested in converting the CURL command of: > > curl 'https://www.walmart.com/chcweba

converting CURL command

2022-08-21 Thread lone...@gmail.com
Hello all, I am interested in converting the CURL command of: curl 'https://www.walmart.com/chcwebapp/api/receipts' \ -H 'sec-ch-ua: "Chromium";v="98", " Not A;Brand";v="99", "Google Chrome";v="98"' \ -H 'a

Re: CURL Command

2020-02-04 Thread 'Rak , Václav' via Django users
ell 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 > wrote: > >> Hi Soumen, >> >> On 04/02/2020 09.01, Soumen Khatua wrote: >> > Hi Folks, >> > >> > Actually now I&#x

Re: CURL Command

2020-02-04 Thread Soumen Khatua
Okay,sorry I thought Wireshark some code snippet. Now i got it. Thank you On Tue, Feb 4, 2020 at 5:46 PM Kasper Laudrup wrote: > Hi Soumen, > > On 04/02/2020 13.02, Soumen Khatua wrote: > > Yeah I did whatever you said but still I'm facing the same issue, But > > same code is working in Httpie

Re: CURL Command

2020-02-04 Thread Kasper Laudrup
Hi Soumen, On 04/02/2020 13.02, Soumen Khatua wrote: Yeah I did whatever you said but still I'm facing the same issue, But same code is working in Httpie and POSTMAN.That's why I'm surprised. No you didn't. Try to compare the POST data being sent using the different clients, then it should

Re: CURL Command

2020-02-04 Thread Soumen Khatua
Yeah I did whatever you said but still I'm facing the same issue, But same code is working in Httpie and POSTMAN.That's why I'm surprised. On Tue, Feb 4, 2020 at 5:29 PM Kasper Laudrup wrote: > Hi Soumen, > > Did you read the rest of my answer past the first two lines? > > On 04/02/2020 12.50,

Re: CURL Command

2020-02-04 Thread Kasper Laudrup
Hi Soumen, Did you read the rest of my answer past the first two lines? On 04/02/2020 12.50, Soumen Khatua wrote: My views.py file *def post(self, request,*args, **kwargs):         """         Create a Job record         :param format: Format of the Job records to return to         :param

Re: CURL Command

2020-02-04 Thread Soumen Khatua
My views.py file *def post(self, request,*args, **kwargs):"""Create a Job record:param format: Format of the Job records to return to :param request: Request object for creating Job records:return: Returns a Job record"""print("request.d

Re: CURL Command

2020-02-04 Thread Kasper Laudrup
Hi Soumen, On 04/02/2020 12.14, Soumen Khatua wrote: 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: * *

Re: CURL Command

2020-02-04 Thread Soumen Khatua
ld 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 wrote: > Hi Soumen, > > On 04/02/2020 09.01, Soumen Khatua wrote: > > Hi Folks, > > > > Actually now I'm usng POSTMAN for all ope

Re: CURL Command

2020-02-04 Thread Kasper Laudrup
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

CURL Command

2020-02-04 Thread Soumen Khatua
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 Authentic