Re: how to pass double quotes in a url from CGI script



$url = "http://...=\"1406746\"";;
print '<META HTTP-EQUIV="refresh" content="1;URL=$url">';

Plugging in the variable gives:
<META HTTP-EQUIV="refresh" content="1;URL=http://...=\"1406746\"";>'
Should there be a " after the URL=?
That may be screwing it up.
You also probably want to call a function (don't of its name) to convert the
"s into the proper HTTP encoded format. (%22 ?)

On 3/29/07, Ravi Malghan <rmalghan@xxxxxxxxx> wrote:

Hi: I am having trouble passing double quotes when passing a url string.
Everything after the double quotes does not go through. For example in the
perl script below, the browser ends up going to
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=

--------SCRIPT----------
$url = "
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=\
"1406746\"";
<HTML>
<HEAD>
<TITLE>Redirect to my Trouble Ticket</TITLE>
</HEAD>
$url = "
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=\
"1406746\"";
print '<META HTTP-EQUIV="refresh" content="1;URL=$url">';
</HTML>
-----------------------------------

How do I pass double quotes so the browser goes to
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'="1406746"
?

Thanks
Ravi




____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/





--
- Yitzchok Good


Relevant Pages

  • Re: webbrowser module bug?
    ... So this could be both a python bug and a Gnome desktop ... Firefox probably does the right thing by putting the quotes around ... in the file browser or some other application which uses ... The webbrowser module needs to be smarter about quotes. ...
    (comp.lang.python)
  • Re: Empty div for holding a background strip of pics...
    ... Neredbojias ... In all browsers I have bar one, the background image in this div ... to it and it was that it was the only browser that did not like ... I've had trouble with quotes on background images, ...
    (alt.html)
  • Re: Double query form, result of 1st query drops anything after a space
    ... Man I love the internet. ... So to tell the browser, that all the words belong to the one ... just put quotes around them. ... > that exist there and how to secure your scripts. ...
    (comp.lang.php)
  • Re: webbrowser module bug?
    ... Reseting the default browser with the gnome default application window ... Firefox probably does the right thing by putting the quotes around ... HTML file, in the file browser or some other application which uses ...
    (comp.lang.python)
  • Re: "The Big Bang Theory" = HILLARIOUS...
    ... Sure would be nice if you'd stop screwing up the formatting of ... quotes. ... Hey, I'm hardly the worst offender here. ...
    (rec.arts.tv)