lua - os.execute start is only giving the browser the first parameter -


as far see when browser opens, get's first param (hi). thanks

os.execute("start http://www.mywebsite.com?id=hi&name=cool") 

short answer: use os.execute("start http://www.mywebsite.com?id=hi^&name=cool")

os.execute passes request system command interpreter, seem realize because used 'start' command. in windows command interpreter, & command separator, you're executing 2 separate commands:

  1. start http://www.mywebsite.com?id=hi
  2. name=cool

to stop windows interpreting & command separator, need escape ^.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -