Download file, allow cookies

Discussion in 'Ruby' started by fedekun, Aug 2, 2009.

  1. fedekun

    fedekun Guest

    Hi, well, when i download an image from a site, instead of download
    the required image it downloads an image which says "Allow Cookies".
    How can i download that image?
    This is what i was using

    writeOut = open(first_page.to_s + "."+extension, "wb")
    writeOut.write(open(img_to_download).read)
    writeOut.close
     
    fedekun, Aug 2, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff
    Replies:
    2
    Views:
    958
    clintonG
    Sep 19, 2006
  2. John Q. Adams
    Replies:
    1
    Views:
    421
    Chris Fulstow
    Oct 13, 2006
  3. _Who
    Replies:
    7
    Views:
    2,686
  4. Ryan Taylor
    Replies:
    1
    Views:
    692
    Ryan Taylor
    Sep 9, 2004
  5. Replies:
    1
    Views:
    75
Loading...

Share This Page