fix getouput -o bug, should test it further
Merge pull request #4034 from qunox/urlfix

 fix getouput -o bug, should test it further