Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --cookies argument to read cookies from file #31

Closed
wants to merge 7 commits into from
Closed

add --cookies argument to read cookies from file #31

wants to merge 7 commits into from

Commits on Aug 13, 2013

  1. set a single cookie

    Use NSMutableURLRequest rather than NSURLRequest, and call
    setValue:forHTTPHeaderField:.
    Alex committed Aug 13, 2013
    Copy the full SHA
    1658f7e View commit details
    Browse the repository at this point in the history
  2. add --cookies argument

    This specifies a Netscape cookie filename to read from.
    Alex committed Aug 13, 2013
    Copy the full SHA
    900c9ef View commit details
    Browse the repository at this point in the history
  3. read cookies from a file

    Alex committed Aug 13, 2013
    Copy the full SHA
    1ddc935 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    9328a14 View commit details
    Browse the repository at this point in the history
  5. use a tempfile to guarantee magic string is present

    cookielib won't even *look* at the rest of a cookie file unless the
    first line matches:
        magic_re = "#( Netscape)? HTTP Cookie File"
    Alex committed Aug 13, 2013
    Copy the full SHA
    bdfe3cf View commit details
    Browse the repository at this point in the history
  6. commenting and function name cleanup

    Alex committed Aug 13, 2013
    Copy the full SHA
    75cca0d View commit details
    Browse the repository at this point in the history
  7. change indent from 2 to 4

    Alex committed Aug 13, 2013
    Copy the full SHA
    c5a4f69 View commit details
    Browse the repository at this point in the history