Results 1 to 7 of 7

Thread: Grabbing image help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    297

    Grabbing image help

    ok I want my program to grab any image on the site that the url starts with like lets say

    Code:
    http://naturesplus.com/coupons/includes/pass-images/
    can I use wildcards on vb.net?

    like [a-z|A-Z|0-9] or something like that?

    The full url for a image smaple would be

    http://naturesplus.com/coupons/inclu...49fn4hjc4n.jpg

    Thank you

  2. #2
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Grabbing image help

    No, if the webserver prohibits directory listing (almost always if the administrator is not a complete idiot) you will need the complete name of each file.

    Here's what it says when you go to the address you mentioned:
    Code:
    HTTP Error 403.14 - Forbidden
    The Web server is configured to not list the contents of this directory.
    See? The only way you can get an image from there is finding out the exact image URL (this includes the file name).

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    297

    Re: Grabbing image help

    Quote Originally Posted by cicatrix View Post
    No, if the webserver prohibits directory listing (almost always if the administrator is not a complete idiot) you will need the complete name of each file.

    Here's what it says when you go to the address you mentioned:
    Code:
    HTTP Error 403.14 - Forbidden
    The Web server is configured to not list the contents of this directory.
    See? The only way you can get an image from there is finding out the exact image URL (this includes the file name).
    it starts with

    http://naturesplus.com/coupons/includes/pass-images/

    so the rest is 8dbchu8ji8yg5fdvnurn49fn4hjc4n.jpg

    so I want to kow if its possible to get the 8db.... and hte url?

  4. #4
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Grabbing image help

    No, if you don't know the name of the file you want to download there are no legal ways to get the list of the files in the directory of a web server.

  5. #5
    Fanatic Member Seraph's Avatar
    Join Date
    Jul 2007
    Posts
    959

    Re: Grabbing image help

    Are you downloading the source code and then searching it for image links?

    Or are you trying to access the directory as cicatrix assumed?

    Visual Studio 2010 Professional | .NET Framework 4.0 | Windows 7

    SERYSOFT.COM :: SysPad - Folder Management Program - Please comment HERE if you find this program useful, have ideas, or know of any bugs.
    [Very useful for IT/DP departments where many folders are consistently accessed. Also contains a scratchpad window for quick access to notes.]

    [.NET and MySQL Quick Guide]

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    297

    Re: Grabbing image help

    Quote Originally Posted by Seraph View Post
    Are you downloading the source code and then searching it for image links?

    Or are you trying to access the directory as cicatrix assumed?
    m downloading the source code then searching.

  7. #7
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Grabbing image help

    if you are downloading the source code then searching within, i'd use regex.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width