What is the equivalent of this java statement in python?
post.setRequestHeader("Cookie", jSessionID);
I’m very confused as to whether this is really a cookie or just POST data with a key of ‘Cookie’
I have urllib2 and cookielib imported, and am confused.
I’m also trying to send a file along with the url request, but that is another topic.
Try something like this:
As you can see “Cookie” is just a key and value in the
headers, which get sent along with thedatausing therequest()method. Hope this answers your question.