The following curl command works fine (private anonymous data):
curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/abc/SMS/Messages.json' \ -d 'From=%2B14155551234' \ -d 'To=%2B17035551212' \ -d 'Body=This+is+a+test' \ -u foo:bar
How can I send this exact HTTPS POST request in the correct Python3.3 path? I don't want to use anything other than the Python 3.3 standard library if I can avoid it (in other words, without using the twilio python module, or βqueriesβ, or pycurl, or anything outside of a simple vanilla-based Python installation 3.3).
The preferred Python approach seems to continue to evolve from version to version, the fragments that I find on Google never mention which version they use or do not complete the registration part, Python documents are full of "deprecated from 3". x "but never include code samples of a new way of doing things ....
If curl can do this so easily, then standard Python 3.3 can. But how exactly should this be done now?
source share