FP1: CGI URL with Spaces in Operand Not Accepted

Last reviewed: March 17, 1998
Article ID: Q155294
The information in this article applies to:
  • Microsoft FrontPage Editor, version 1.1

SYMPTOMS

FrontPage Editor, version 1.1, will not allow a link to a Common Gateway Interface (CGI) Uniform Resource Locator (URL) if the URL has spaces between the arguments.

In the case of a CGI program, the HyperText Markup Language (HTML) parser in FrontPage will recognize the termination of a URL at the question mark, which is a reserved token for CGI parameters. In the case of a standard hyperlink reference (HREF) link, the HTML parser in FrontPage will accept spaces in the URL by automatically surrounding the file name with quotation marks.

WORKAROUND

When you create a link to a CGI program, view the URL in the Link Properties dialog box, and replace each space between arguments with a plus sign.

For example, a link to

   cgi-bin/mycgi.exe?arg1 arg2 arg3

should be written as:

   cgi-bin/mycgi.exe?arg1+arg2+arg3

MORE INFORMATION

Note that some operating systems will not allow spaces in file names; therefore, for optimal cross-platform compatibility, avoid using spaces in file names.


Additional query words: 1.10
Keywords : kbusage kbdta
Version : windows:1.1
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 17, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.