If
local_base=admin&func=save&base=staff are supposed to be part of the
url parameter, then the source of the problem is that you are dealing with a bad URL - see
Percent_encoding. Again, that is not a legal URL. If a parameter must contain any of the reserved characters (in this case, it contains 5 different reserved characters), you must escape it. See
URI::Escape. Are you generating this link in a different script, or is it coming from the outside? This should really be fixed where it is coming from - the URL should look like:
http://example.mycgi.com:9999/service?func=search&institute=DEMO&calling_app=ABC&url=http%3A%2F%2Freturn.link.com%3A8997%2FF%3Flocal_base%3Dadmin%26func%3Dsave%26base%3Dstaff
If this is coming from the outside and there is no way to get them to fix their code, you can check the environmental variables for the request URL: $ENV{REQUEST_URI}.
For some intro material on working with Perl CGI, check out Ovid's CGI Course - Resurrected and Updated!. In particular, part of your issue is discussed in lesson 2.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.