• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strings taken from the command line get cut after an '&' symbol

 
Chaz Andrews
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, I'm trying to pass a url through the command line to my application, in this case 'http://myeve.eve-online.com/ingameboard.asp?a=channel&channelID=3519' suddenly turns into 'http://myeve.eve-online.com/ingameboard.asp?a=channel'.

I thought that maybe the string might have been spllit into args[0] and args [1], but this isnt the case.

When i just declare the url as a string in the code, this doesnt happen. Why is this? Thanks in advance if you can help
[ March 17, 2007: Message edited by: Chaz Andrews ]
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The shell may be trying to interpret the ampersand character. Try enclosing the URL with double quotes.
 
Chaz Andrews
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks alot! that did the trick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic