[xml] spaces in uri, again



I can't force libxml2 to load uri with spaces. Look at this:

# xmllint 'http://localhost/a'
warning: failed to load external entity "http://localhost/a";

Ok, I've got 'GET /a HTTP/1.0' in apache log.
Then I try:

# xmllint 'http://localhost/a b'
warning: failed to load external entity "http%3A//localhost/a%20b"

and nothing in apache log (nanohttp failed to recognize 'http://' scheme?)
So I try:

# xmllint 'http://localhost/a%20b'
warning: failed to load external entity "http://localhost/a%20b";

but in apache log I got: '"GET /a b HTTP/1.0" 400' - very bad, libxml
unescaped my uri :-(
When I type 'http://localhost a b' in my browser, apache says
'GET /a%20b HTTP/1.1'...



Pawel Palucha




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]