I am trying to use curl with jboss
when ever I type in a space in the url I get a http 505 error, is there a way to configure jboss to handle this gracefully?
curl -v -i "http://127.0.0.1:8080/../something?at=flowers&pid=hb36HQ09&loc=San Francisco"
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /../something?at=flowers&pid=hb36HQ09&loc=San Francisco HTTP/1.1
> User-Agent: curl/7.19.4 (universal-apple-darwin10.0) libcurl/7.19.4 OpenSSL/0.9.8k zlib/1.2.3
> Host: 127.0.0.1:8080
> Accept: */*
< HTTP/1.1 505 HTTP Version Not Supported
HTTP/1.1 505 HTTP Version Not Supported
< Server: Apache-Coyote/1.1
< Date: Wed, 03 Feb 2010 18:13:49 GMT
Date: Wed, 03 Feb 2010 18:13:49 GMT
< Connection: close
Do you mean to be using an HTTP GET or are you trying to send a POST?
I'm not completely certain but wouldn't you want to put a "%20" between 'San' and 'Francisco'?