Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. from django.core.management.base import BaseCommand
  2. from pysimplesoap.client import SoapClient
  3.  
  4.  
  5. class Command(BaseCommand):
  6. def handle(self, *args, **options):
  7.  
  8. username = 'usr'
  9. password = 'usrpswd'
  10. url = 'https://link/remote/index.php'
  11. uri = 'https://link/remote'
  12.  
  13. client = SoapClient(
  14. location=url,
  15. trace=True,
  16. http_headers={'Authorization': 'Basic %s:%s' % (username, password)}
  17. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement