I’m trying to write a Python script to process Actions from ShotGrid.
While using HTTP things are fairly simple:
import socket
TCP_PORT = 8443
BUFFER_SIZE = 4096
print('Listening...')
server = socket.socket()
server.bind(('',TCP_PORT))
server.listen()
conn, addr = server.accept()
data = conn.recv(BUFFER_SIZE)
print('Incoming from: ', addr)
print(data)
But we have to use HTTPS protocol and I’m not very confident with SSL library.
Could anyone help me modify this code, so that it works with SSL?