correct me if i am wrong (it does happen alot), but it appears you want someone else to POST a file to you without ever visiting your site ... using the HTTP POST method as a filetransfer without a UI, right ? If not, skip the rest, if so, Read on :
First off, i have never done this, so what i am about to say is all guesses, thoughts and conjecture ... but thats what code is made of. To start with the obvious, HTTP is not really built for this, and FTP would probably be a better solution over all ... but assuming there is a reason this is not being used (and a good one i would hope), you could setup a form which uses the statdard upload faeture , but use </code>Vars</code> method to get all params and the use the keys of the hasref returned to find the vaild one. That will allow someone to post to
url/script.pl?foo=file or
url/script.pl?bar=file if correctly implimented.
Hope that helps
OH, a sarcasm detector, that’s
really useful
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.