Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

How to Update Remote Webserver Files

by Cobo (Scribe)
on Jul 15, 2001 at 08:06 UTC ( #96819=perlquestion: print w/replies, xml ) Need Help??

Cobo has asked for the wisdom of the Perl Monks concerning the following question:

What I would like to do is use perl to add a single file to a host account (such as geocities), I've been looking for information on how to do this and have'nt really found any (I read up on LWP but I can't find information to fit what I want to do) and I was just wondering if some one knew where I could get information on how to do this.

Edit kudra, 2001-07-16 Changed title

Replies are listed 'Best First'.
Re: Trouble Finding Information
by IndyZ (Friar) on Jul 15, 2001 at 08:29 UTC
    If I interpret you question correctly, you want to upload files to Geocities. I haven't used geocities since way before the Yahoo! takeover, but I am pretty sure that you can use FTP to upload files (some of these free hosting services want you to use web forms!). Check out Net::FTP. It's a good solid module with an easy interface.

Re: Trouble Finding Information
by synapse0 (Pilgrim) on Jul 15, 2001 at 08:52 UTC
    LWP is, i'm sure, what you need. I haven't played with it at all, so i can't give specifics but you want to do is something like this:
    Visit the message board you want to upload to and read from. Read the HTML source to see what kinds of forms they use and what type of name/value pairs they want. When you figure out what name/value pairs are used, you can simulate those POST and GET actions with LWP, sending from your system rather than the web page.
    I hope that helps somewhat..
Re: Trouble Finding Information
by adamsj (Hermit) on Jul 15, 2001 at 08:19 UTC
    I'm not sure you've given us enough information about exactly what you want to do--tell us more.

    Update: Now we have a better idea what you want to do. I recommend you sketch out with pseudo-code the outlines of what you want to do, then start asking focused questions--this one is a little broad.


    They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

      Sorry about that, Well basically what I want to do is make a program that you run from the command line that lets you enter information that you would generally input into a message board, and then put the information into a file and put it on a host, you will also have the option of reading files currently on the host, I plan to have it sort of like a command line based message board system.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://96819]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2022-10-05 11:23 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (23 votes). Check out past polls.