Hi all,
The problem is that IIS returns 'none instead of "" (an empty string) when
the query string is empty.
Hence the message
** Script Error: decode-cgi-query expected args argument of type:
any-string.
** Where: query: make object! decode-cgi-query
system/options/cgi/query-string
The solution without breaking the script for other servers is to test for
none and make the query-string an empty string if necessary something along
the lines of this should do it. Place this before your decode-cgi line
;--Fix for IIS & PWS
if none? system/options/cgi/query-string [system/options/cgi/query-string:
copy ""]
Cheers
Allen K
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 20, 2000 2:04 AM
Subject: [REBOL] rebol cgi under IIS Re:(3)
> Ed,
>
> I have the following script which works on both my IIS3 and IIS4 servers.
Several people have claimed the first line is not necessary and while I've
never removed it, it doesn't seem to hurt. I was getting the same messages
you were about "no header info" until I added the REBOL [...], AND the print
"Content-Type..." to the top portion of the script. I know this is get type
still, not the post method you're looking for but maybe it will help.
>
> #!/inetpub/wwwroot/ititest/ssp/rebol --cgi
> REBOL [
> Title: "Test Script"
> ]
> print "Content-Type: text/html^/"
> print [
> <HTML><TITLE> "Testing 1 2 3" </TITLE>
> <BODY>
> ]
> query: make object! decode-cgi-query system/options/cgi/query-string
> print ["Email confirmation has been sent to" query/email <BR> "URL:"
query/url]
> print [
> </BODY>
> </HTML>
> ]
>
>
> -->S<
>
> At 03:42 PM 1/19/00 +0000, [EMAIL PROTECTED] wrote:
> > >IIS. Now I had problems very similiar which I couldnt figure >out
until I changed
> >the form method in the HTML script from a >method of "post" to "get".
> >
> >I`ve played around a wee bit more and managed to get it to work under
IIS4.
> >Well that is A rebol script to work under IIS. Sadly not the one I want
to work
> >which is a form that needs a POST method. How can a post method in a form
under
> >rebol and IIS be decoded ?
> >
> >As for using IIS3, I`ve still had no luck even with the detailed setup
instructions
> >sterling gave me a while back. It gives that header error with even the
simpliest
> >rebol gi scripts.
> >
> >Ed.
>
>