First question
Eric, Audet (eaudet@scc.ca)
Fri, 16 Oct 1998 13:03:14 -0400
Hope for first answer ...
I wrote a script (simple one) that POST through Netscape Enterprise
server to a binary program.
Everything is fine except the result .... And I was wondering why!?
Here 's the small script ... and read bellow for my question!
#!/usr/bin/perl
use HTTP::Request::Common qw/POST/;
$req = POST "http://aURL:8088/https-IAS-Public/bin/wpscollcr",
[doc_name => "*.html", recursive => "No", coll_name => "LWPtest",
coll_alias => "LWPtest", coll_desc => "", filetype => "html",
meta_extract => "no", language => "English (ISO-8859-1)"];
$req->authorization_basic("login", "password");
use LWP;
$ua = LWP::UserAgent->new;
$res= $ua->request($req);
print $res->as_string;
Got that? Well it connect, it run the script (I think) but it looks like
if the script looking for something else.
Well here the result ... not impresive ... just a javascript alert ...
I was wondering if the program is not checking if I am using a netscape
browser ... or a compatible browser .... What do any of you think?
HTTP/1.0 200 OK
Date: Fri, 16 Oct 1998 17:01:45 GMT
Server: Netscape-Administrator/3.5
Content-Type: text/html
Client-Date: Fri, 16 Oct 1998 17:01:46 GMT
Client-Peer: 205.206.6.6:8088
<script
language=JavaScript>document.cookie="wpsdirOption=/data/web/public; path
=/";</script>
<SCRIPT LANGUAGE="JavaScript">alert("File System
Error:default\nnon-existent. Ca
nnot index documents\n\nThe system returned error number 2, which is
unknown ear
ly startup error.");if(history.length>1) history.back();</SCRIPT>
ERIC