[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] LWP calls
****** message to minivend-users from kswisher@iolinc.net (Swisher, Karl) ******
Hello
I'm back up and running now under RH 6.1 and kernel 2.2.13. I trying
to understand and make work the LWP calls. From an earlier example I was able
to set up html files for download using LWP::Simple. However I'm a little
unclear how to do other types of files and use some other features. I have
installed libwww-perl-5.47. I've also read the sections in perldoc. I have
had trouble finding all the content-type code for all the different formats in
perldoc. I have the following code inserted in a results type page with
[value searchspec] containing a URL path. Have verified the data is there by
displaying in HTML page. The URL path is a real path with a real file at
the end. Also the results of this perl code should return the results of the
guess_media_type call. This should correspond to the type of file at the end
of the URL path. Since I believe there more combinations than "image/gif" and
"audio/basic" I would use this to return the type of different files and check
the possibilities.
[perl values interpolate=1]
use LWP::MediaTypes;
my $page = guess_media_type([value mv_searchspec]);
return $page;
[/perl]
This code returns nothing.
I've got
RH 6.1
kernel 2.2.13
perl 5.005.03
DBI 1.13
DBD 0.92
MiniVend 3.14-3
libwww-perl 5.47
Any help will be appreciated.
Thanks
Karl
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list