p***@gmail.com
2018-09-13 02:39:12 UTC
I use the following bottle code.
@route('/hello/<name>')
def index(name):
print name
return template('<b>Hello {{name}}</b>!', name=name)
run(host='localhost', port=8080)
Neither of the following wget command will return a name with slash in it.
Does anybody know how to allow it take strings with special characters like
slashes? Thanks.
$ wget -qO- http://localhost:8080/hello/abc/x
$ wget -qO- http://localhost:8080/hello/abc%2Fx
--
@route('/hello/<name>')
def index(name):
print name
return template('<b>Hello {{name}}</b>!', name=name)
run(host='localhost', port=8080)
Neither of the following wget command will return a name with slash in it.
Does anybody know how to allow it take strings with special characters like
slashes? Thanks.
$ wget -qO- http://localhost:8080/hello/abc/x
$ wget -qO- http://localhost:8080/hello/abc%2Fx
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.