소스 검색

adding missing getCSRF.py

NIX User 5 년 전
부모
커밋
e892554ee8
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      getCSRF.py

+ 12 - 0
getCSRF.py

@@ -0,0 +1,12 @@
+import labkeyInterface
+import io
+import os
+
+net=labkeyInterface.labkeyInterface()
+fhome=os.path.expanduser('~')
+net.init(fhome+'/.labkey/network.json')
+
+csrf=net.getCSRF()
+print("CSRF={}".format(csrf))
+
+quit()