HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PERL 5.6: query params problem
Operating System - HP-UX
1833792
Members
2509
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 10:15 AM
07-01-2002 10:15 AM
PERL 5.6: query params problem
Hi,
I am having an issue with Apache and/or PERL whereby in the URL '&' characters are being replaced with ';'. This is the HP version of Apache 1.3.19.23 on HP-UX 11i
and PERL 5.6.
A request like
http://hostname/cgi-bin/test.cgi?nameone=123&nametwo=1
after the PERL script (using the CGI pragma) parses the URL and redirects to a
landing page such as
http://hostname/redirectedpage?nameone=123;nametwo=1
however the & becomes a ';' and the page cannot be displayed. When the script is changed to use the PERL 5.005 version this works correctly. However from what I have read
so far the web server should be able to handle the ';'.
anybody any ideas?
Regards.
I am having an issue with Apache and/or PERL whereby in the URL '&' characters are being replaced with ';'. This is the HP version of Apache 1.3.19.23 on HP-UX 11i
and PERL 5.6.
A request like
http://hostname/cgi-bin/test.cgi?nameone=123&nametwo=1
after the PERL script (using the CGI pragma) parses the URL and redirects to a
landing page such as
http://hostname/redirectedpage?nameone=123;nametwo=1
however the & becomes a ';' and the page cannot be displayed. When the script is changed to use the PERL 5.005 version this works correctly. However from what I have read
so far the web server should be able to handle the ';'.
anybody any ideas?
Regards.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 12:56 PM
07-02-2002 12:56 PM
Re: PERL 5.6: query params problem
From the CGI.pm documentation, there appears
to have been a change in the CGI spec at some
point.
>> -newstyle_urls
>> Separate the name=value pairs in CGI parameter query strings
>> with semicolons rather than ampersands. For example:
>>
>> ?name=fred;age=24;favorite_color=3
>>
>> Semicolon-delimited query strings are always accepted, but will
>> not be emitted by self_url() and query_string() unless the
>> -newstyle_urls pragma is specified.
I still use '&' instead of ';'. Perhaps the Perl 5.6 version
of CGI.pm prefers the ';' style, or maybe the the CGI uses
-newstyle_urls.
HTH
to have been a change in the CGI spec at some
point.
>> -newstyle_urls
>> Separate the name=value pairs in CGI parameter query strings
>> with semicolons rather than ampersands. For example:
>>
>> ?name=fred;age=24;favorite_color=3
>>
>> Semicolon-delimited query strings are always accepted, but will
>> not be emitted by self_url() and query_string() unless the
>> -newstyle_urls pragma is specified.
I still use '&' instead of ';'. Perhaps the Perl 5.6 version
of CGI.pm prefers the ';' style, or maybe the the CGI uses
-newstyle_urls.
HTH
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP