Questions tagged [cookiejar]

Cookiejar is a Class from the cookielib Python module

The cookielib module defines classes for handling of HTTP cookies.

73 questions
0
votes
1 answer

PHP CURLOPT_COOKIEFILE/CURLOPT_COOKIEJAR do not seem to be working on remote server

I have a rather interesting issue with passing cookies using curl. I have a script that logs into my company's queuing system, then grabs the cookies from the successful login. Later, the script will then recall those cookies to query the system and…
Dave Lasley
  • 5,262
  • 1
  • 34
  • 37
0
votes
1 answer

WebClient login with Cookie and download String

I login with HTTPWebRequest and transfer the CookieContainer to the new class and want my WebClient to log in with this cookie and download a site as string. But I only get the source code of the login page, so it seems like the webclient won't…
Zasam
  • 63
  • 2
  • 17
0
votes
1 answer

Cannot get queued cookie from request

So I have PHP controller that sends cookie in queue, and I need to get this cookie next time when I refresh the page (and call this controller). When controller is called, it checks if the cookie exists in request, an if not, it sets it in queue…
Coffee
  • 2,063
  • 8
  • 24
  • 57
0
votes
1 answer

Getting cookies from a form submit and using them with a webtest

So I'm trying to do some test cases with webtest library, the problem is that my site has access control which requires a user to login. It seems that the form post is successful, but the result do not have any cookies (that I could find at least),…
Miro K.
  • 345
  • 1
  • 4
  • 13
0
votes
1 answer

Does Node.js Request node store HTTPOnly cookies?

I would like to store the cookies that I receive in a HTTP response and send them to the server in the next HTTP request. I know that HTTPOnly cookies "dont like" JS. So does the Request node (using node.js) store the HTTPOnly cookies in jar if set…
0
votes
1 answer

Broken Link Checker Fails Head Requests

I am building a broken link checker using Python 3.4 to help ensure the quality of a large collection of articles that I manage. Initially I was using GET requests to check if a link was viable, however I and trying to be as nice as possible when…
David Scott
  • 796
  • 2
  • 5
  • 22
0
votes
0 answers

Python - Cookies & BeautifulSoup

I wrote a simple python script that authenticates to a website, gets the cookie write it to a file and do some scrapping at the website. I'm writting the cookie to a file so, I can reuse it and don't need to authenticate my self over and over. At…
0
votes
1 answer

What is the use of cookiejar in getting url

I would like to implement what is shown here: Login to website using urllib2 - Python 2.7 My question is why is cookielib and cookiejar needed in the code? Why will the code not work without cookielib and cookiejar? Thank you.
Ashley
  • 1
  • 1
0
votes
1 answer

Using CookieJar in Python to log in to a website from "Google App Engine". What's wrong here?

I've been trying to find a python code that would log in to my mail box on yahoo.com from "Google App Engine" . Here (click here to see that page) I was given this code: import urllib, urllib2, cookielib url =…
brilliant
  • 2,805
  • 11
  • 39
  • 57
0
votes
1 answer

Mechanize/CookieJar not keeping session persistence

I've had a website scraper running for an extended time without any issues. Recently, I believe that the website made a change and I'm now having session persistence issues. Here is the code to create my browser: def create_browser(): # Browser br…
user2238685
  • 707
  • 1
  • 6
  • 8
0
votes
1 answer

Having issues logging into website with Python 3.3 and urllib

I'm having issues logging into a website with Python. I just want to login to the site, then get the raw html of a page that you can only see when logged in so I can parse it with BeautifulSoup. I've tried using the answer at How to use Python to…
user2773831
0
votes
1 answer

use curl to save login cookies

I have no real experience working with curl, so I probably need some help. I have a php script that needs access to a file called redownloadsubmitter.jsp, but when I try it fails because the php script on my server has no authentication done prior…
Kolja
  • 860
  • 4
  • 10
  • 30
0
votes
1 answer

Correct Way To Find things in Pydev Anacondas py33

I am using PyDev to develop some Python software. My environment is Anacondas, Python 3.3 Just now, I wanted to use the cookiejar module. The online tutorials state that I need to import the module using import cookiejar However, that did not work.…
Ginger
  • 8,320
  • 12
  • 56
  • 99
1 2 3 4
5