have you had any issues using the post request on a script running in background, i have a script which run fine in foregound, but locks up when performing the request call to the server
Could you tell me about how to use certificate in requests.post when the web is using tls and ssl (verify=True)? What are kinda cert and key that we have to choose? I'm still facing SSL error issues.
Check this : You can pass verify the path to a CA_BUNDLE file or directory with certificates of trusted CAs: >>>requests.get('github.com', verify='/path/to/certfile') requests.get('kennethreitz.org', cert=('/path/client.cert', '/path/client.key')) Requests uses certificates from the package certifi. This allows for users to update their trusted certificates without changing the version of Requests.
@@python360 may I get your mail id? Note: response.text is working fine and showing the resultant dataset having \u000d\u000a\ but response.json is throwing the exception.
this movie helps a lot! Thanks
Thanks JJJ, glad it helped 👍
Thank you for the video. Useful!!
You are welcome!
have you had any issues using the post request on a script running in background, i have a script which run fine in foregound, but locks up when performing the request call to the server
No, are you using Win or Linux/Mac, are you using su?
Could you tell me about how to use certificate in requests.post when the web is using tls and ssl (verify=True)? What are kinda cert and key that we have to choose? I'm still facing SSL error issues.
Check this :
You can pass verify the path to a CA_BUNDLE file or directory with certificates of trusted CAs:
>>>requests.get('github.com', verify='/path/to/certfile')
requests.get('kennethreitz.org', cert=('/path/client.cert', '/path/client.key'))
Requests uses certificates from the package certifi. This allows for users to update their trusted certificates without changing the version of Requests.
How to print the post method json response? Response.json is throwing some error.
Can you share your code?
@@python360 may I get your mail id? Note: response.text is working fine and showing the resultant dataset having \u000d\u000a\ but response.json is throwing the exception.
yes, just use the 'business address' button on the Python360 RUclips channel page, it'll reach me.
@@python360 sent
@@ketanmehta3058 Just replied to you!
thx but how to access post request API with scrapy now
Send params as JSON, it's in the Scrapy documentation for POST
How can I send an xml file to an endpoint?
Can you elaborate a bit? What is the URL of the endpoint?
Piss? 4:03
Pi Software Solutions