Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
There's more than one way to do things
 
PerlMonks  

How to Update Remote Webserver Files

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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 adamsj (Hermit) on Jul 15, 2001 at 04: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.

    adamsj

    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.
Re: Trouble Finding Information
by IndyZ (Friar) on Jul 15, 2001 at 04: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.

    --
    IndyZ
Re: Trouble Finding Information
by synapse0 (Pilgrim) on Jul 15, 2001 at 04: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..
    -Syn0

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://96819]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.