1/02 Is there a generally accepted way to embed a URL into a GET
request? I want to put a url such as "foo.jsp?cmd=1&id=2"
into a GET request as a parameter, eg:
http://bar.com/index.jsp?pageId=34&URL=foo.jsp?cmd=1&id=2
but I'm worried that the parameters in the main page will be
parsed as
pageId == 34
URL == foo.jsp?cmd=1
id == 2 //wrong
So is there a "good" way to do this, or do I have to muck about
with quoting and string substitution?
\_ You'd have to HTML-escape the ?'s and &'s, or else use different
delimiters and have your program parse them. -tom
\_ tom designed the HTML spec.
\_ I heard it was Jesus who gave it to him. |