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. Advertisements

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. Ryan Taylor
    Replies:
    2
    Views:
    1,350
    Ryan Taylor
    Nov 10, 2004
  2. Sam --
    Replies:
    2
    Views:
    948
    Sam --
    Mar 17, 2005
  3. Brett  Kelly
    Replies:
    1
    Views:
    955
    Steve C. Orr [MVP, MCSD]
    Jun 16, 2006
  4. Jeff
    Replies:
    2
    Views:
    1,205
    clintonG
    Sep 19, 2006
  5. John Q. Adams
    Replies:
    1
    Views:
    520
    Chris Fulstow
    Oct 13, 2006
  6. _Who
    Replies:
    7
    Views:
    3,162
  7. Ryan Taylor
    Replies:
    1
    Views:
    863
    Ryan Taylor
    Sep 9, 2004
  8. Replies:
    1
    Views:
    133
Loading...