Ask a Question related to PERL Miscellaneous, Design and Development.
-
[nix] #1
automate file upload using perl
Hi,
I'm trying to automate a process to upload a file to hotmail, but
having a strange error and I don't know what I'm doing wrong with the
script.
below is the code:
use HTTP::Request::Common;
use LWP;
-- snipped --
$ua = new LWP::UserAgent;
$ua->agent('Mozilla/5.0 (compatible; MSIE 5.5; Windows 98; Win 9x;
Windows 2000)');
$response = $ua->request(POST
'http://by7fd.bay7.hotmail.msn.com/cgi-bin/doattach',
Content_Type => 'form-data',
Content => [ curmbox => 'F000000001',
HrsTest => '',
attachmentfilename => '',
attachorcancel => '',
userfilename => '',
contentType => '',
smsg => 'jaja.saved',
attfiles => '',
stationery => '',
originalstationery => '',
ref => '',
RTEbgcolor => '',
from => 'compose',
oldattfile => '',
_HMAction => '',
attfile => ['./text.txt'],
]
);
print ($response->is_success) ? $response->content :
$response->status_line;
The error message returned:
<!-- counter(177) >= nLines(177)! -->
<!-- H: bay7-f64.bay7.hotmail.com -->
<!-- V: WIN2K 09.07.50.0039 i -->
<!-- D: Sep 3 2003 18:03:53-->
<!-- S: 0-->
I'd appreciate very much if somebody could enlight me with some
inputs.
Thanks.
[nix] Guest
-
Perl Cgi Upload File Memory Leak
Hello, perl v5.8.0 CGI.pm-3.00 http-2.0.48 Everytime i upload a file via my perl script, the amount of bytes transfered (size of the... -
HELP! Need to write batch file to automate securityupdate process
Hello: I need to figure out how to write a batch file to automate the security patch process for 40 Coldfusion servers. Some are 4.5 and some... -
How to automate file deployer?
We currently use Contribute Simple file deployer to transfer webpages from a staging site to the live site. Is there a way to set date and time... -
Upload Friendly (Multiple File Upload Applet)
Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file... -
Automate Perl module
I'm using ActiveState ActivePerl 5.6 as my helper script for Windows 2K/XP deployment. During OS deployment, I install ActivePerl automatically... -
Brian McCauley #2
Re: automate file upload using perl
[email]maumul@hotmail.com[/email] ([nix]) writes:
> I'm trying to automate a process to upload a file to hotmail, but
> having a strange errorWhat made you conclude that that was an error message?> print ($response->is_success) ? $response->content :
> $response->status_line;
>
>
> The error message returned:
> <!-- counter(177) >= nLines(177)! -->
> <!-- H: bay7-f64.bay7.hotmail.com -->
> <!-- V: WIN2K 09.07.50.0039 i -->
> <!-- D: Sep 3 2003 18:03:53-->
> <!-- S: 0-->
Looks like some sort of debugging aid to me.
I suggest you take a look at the response headers.
BTW: I don't think your question has anything to do with Perl but I'm
not aware of any newsgroup that deals with the language-neutral
aspects of writing automated web clients.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
Brian McCauley Guest



Reply With Quote

