1

I am new to python

How can i use python to post the following, i need to login to CISCO VNMC and do login and grab cookie from the output, and do logout

 POST https://10.193.34.70/xmlIM/mgmt-controller

 Please enter content (application/x-www-form-urlencoded) to be POSTed:

 <aaaLogin 

    inName="admin" 

    inPassword="cisco@123"/>

http://www.cisco.com/en/US/docs/unified_computing/vnmc/sw/1.3/VNMC_API_Reference_Guide/VNMC_XML_API_2chap2.html#wp1162932

Suggest me some way for doing this.

2 Answers 2

2

http://docs.python.org/2/library/httplib.html

You can do your 1st request, get the cookie from the response, and whatever you need to do with this module.

Sign up to request clarification or add additional context in comments.

Comments

1

Use the state of the art requests module for Python

http://docs.python-requests.org/en/latest/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.