Slingger buglet

I think.

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.

  1. 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).

  2. 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 – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

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:


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

Ping?


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

“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:


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

Pong! I’d really like to use this. Is is supposed to be supported?


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:9uoi69$6vc$1@inn.qnx.com

Ping?

“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:

“apps” <apps@qnx.com> wrote in message news:3C1138CE.5040200@qnx.com

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:

  1. the HTTP header must end with 2 new line characters
  2. 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.


As for the differences, you can read about it in the documentation
found at
http://qdn.qnx.com/support/docs/neutrino_2.11_en/utilities/s/slinger.html
Do a search on `location´ and you´ll find it near the bottom of the
document.

This help page is newer than the one that the 6.1 helpviewer shows me. I

will examine the differences.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

Bill Caroselli wrote:

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:


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net
\

Hello Bill,

I apologize for not getting back to you sooner.



Bill Caroselli wrote:

I think.

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.

\

  1. 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.

  1. 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.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

About your next post, you can’t have a new line after your “Location:”.
Try removing that line and it should work fine.

As for the differences, you can read about it in the documentation
found at
http://qdn.qnx.com/support/docs/neutrino_2.11_en/utilities/s/slinger.html
Do a search on `location´ and you´ll find it near the bottom of the
document.

Regards,
Dave B.