Admittedly I am new at setting up this web server stuff, but I’ve actualy
had a lot of luck getting a web application going using slinger. However,
from the books that I’ve been reading I see two little buglets.
The Tag
<a href=http:///cgi-bin/my_script">text
does not work. If I change the three slashes to a single slash it works
fine. I.E.
<a href=http:/cgi-bin/my_script">text
works just fine. My book suggests that three slashes is the proper syntax
for executing a script on teh local server. If this is a misunderstanding
on my part please let me know (and I’ll write the author of the book).
The boot also suggests that PATH_INFO should return a string with a ‘/’
slash as the first character. Slinger returns a string without the leading
slash. Is that a bug?
“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:9udtkn$mo0$> 1@inn.qnx.com> …
Also, if a cgi script return “Location: /my_page.html\n\n” or “URI:
/my_page.html\n\n” slinger returns with an error -8.
Are these supported by slinger?
What is the difference between them? My book says that Location: is
being
depreciated in favor of URI:
a href=http:///cgi-bin/my_script">text</a
does not work. If I change the three slashes to a single slash it works
fine. I.E.
a href=http:/cgi-bin/my_script">text</a
works just fine. My book suggests that three slashes is the proper
syntax
for executing a script on teh local server. If this is a
misunderstanding
on my part please let me know (and I’ll write the author of the book).
For this problem it’s the browser that isn´t resolving the address and
therefore it is a typo in your book.
Are you saying that this is a bug in voyager instead of slinger? I don’t
really think so. BUT . . . I am certain that the 3 leading slashes is
perfectly legal.
About your next post, you can’t have a new line after your “Location:”.
Try removing that line and it should work fine.
I don’t have a new line after the colon ‘:’. As for the new lines at the
end of the line the documentation says that:
the HTTP header must end with 2 new line characters
any data that may appear after the location “line” will be ignored.
While this is a little confusing, I tried using 2, 1 and 0 new line
characters before the end of file. None of the above worked.
Admittedly I am new at setting up this web server stuff, but I’ve actualy
had a lot of luck getting a web application going using slinger. However,
from the books that I’ve been reading I see two little buglets.
\
The Tag
a href=http:///cgi-bin/my_script">text</a
does not work. If I change the three slashes to a single slash it works
fine. I.E.
a href=http:/cgi-bin/my_script">text</a
works just fine. My book suggests that three slashes is the proper syntax
for executing a script on teh local server. If this is a misunderstanding
on my part please let me know (and I’ll write the author of the book).
For this problem it’s the browser that isn´t resolving the address and
therefore it is a typo in your book.
The boot also suggests that PATH_INFO should return a string with a ‘/’
slash as the first character. Slinger returns a string without the leading
slash. Is that a bug?
Your right, it should return a leading `/´. I have entered a PR on this
so it should be fixed in the future.