Ok, first go and read this
thread, please.
Then read the API documentation on HTTPConnection and HTTPSConnection.
If you want to send data to an HTTP(S) connection you use the POST protocol. There is an example in the API documentation for HTTPConnection.