cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
create_post_role.py File Reference

Go to the source code of this file.

Namespaces

 create_post_role
 

Variables

 create_post_role.pr_file = bytearray(in_file.read())
 
string create_post_role.requestString = "POST /configure HTTP/1.1\r\nUser-Agent: curl/7.29.0\r\nContent-Type: application/x-www-form-urlencodedAB\r\n\r\n"
 
 create_post_role.pr_len = len(pr_file)
 
 create_post_role.pr_words = int(pr_len/4)
 
 create_post_role.byteData = bytearray(requestString.encode())
 
 create_post_role.pr_file_size = len(pr_file)
 
 create_post_role.number_of_words = int(pr_file_size/4)