Professional Web Applications Themes

What function to get a file thru HTTP - PERL Beginners

Hi list, I have been doing some searching and I'm looking for a recomendation. I need to pull a file via HTTP in my perl script. Just looking for a good module to use. Most everything I have found has been for FTP. Not asking for code, just a recomendation :) Dave Kettmann NetLogic...

  1. #1

    Default What function to get a file thru HTTP

    Hi list,

    I have been doing some searching and I'm looking for a recomendation. I need to pull a file via HTTP in my perl script. Just looking for a good module to use. Most everything I have found has been for FTP. Not asking for code, just a recomendation :)

    Dave Kettmann
    NetLogic
    Dave Guest

  2. #2

    Default Re: What function to get a file thru HTTP

    > Hi list, 
    I need to pull a file via HTTP in my perl script. Just looking for a
    good module to use. Most everything I have found has been for FTP. Not
    asking for code, just a recomendation :) 

    LWP::UserAgent

    http://danconia.org

    Wiggins Guest

  3. #3

    Default RE: What function to get a file thru HTTP

    Thanks Chris and Wiggins, will definately look into this.
     
    > recomendation.  
    > looking for a  
    > for FTP. Not  
    >
    > You need the LWP module: `sudo perl -MCPAN -e 'install Bundle::LWP'`
    >
    > LWP provides several ways to do this, including LWP::Simple.
    >
    > See the perldoc for LWP and its modules or search Google.
    >
    >
    > --
    > Chris Devers
    > [/ref]
    Dave Guest

  4. #4

    Default Re: What function to get a file thru HTTP

    On Wed, 13 Oct 2004, Dave Kettmann wrote:
     

    You need the LWP module: `sudo perl -MCPAN -e 'install Bundle::LWP'`

    LWP provides several ways to do this, including LWP::Simple.

    See the perldoc for LWP and its modules or search Google.


    --
    Chris Devers
    Chris Guest

  5. #5

    Default Re: What function to get a file thru HTTP

    Look at LWP::Simple and the getstore function

    If it's a straight text file is as simple as:

    ===code==
    use LWP::Simple;
    getstore("http://www.testdomain.com/files/filename","filename");

    === code ====

    Mike

    Dave Kettmann wrote: 
    Mike Guest

  6. #6

    Default Re: What function to get a file thru HTTP



    Dave Kettmann wrote:
     

    Howdy Dave :)
     

    Take a look on search.cpan.org for LWP
     

    Lee.M - JupiterHost.Net
    JupiterHost.Net Guest

Similar Threads

  1. error in trying upload function in http://www.15seconds.com/
    By blur_ivy in forum ASP.NET Web Services
    Replies: 0
    Last Post: February 26th, 03:42 PM
  2. Replies: 2
    Last Post: August 1st, 02:04 PM
  3. HTTP File Upload Using SSL
    By MSNews in forum ASP
    Replies: 3
    Last Post: July 31st, 07:39 PM
  4. the PHP die() function, HTTP packets, and Mozilla and XML
    By Terence in forum PHP Development
    Replies: 0
    Last Post: July 25th, 04:48 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139