Short answer: wget skips body on 400 assuming you didn't want error page
stored.
Long answer: get your error page with additional wget params, like so:

✗ wget -Sd http://10.0.3.113:8080/solr/collection1/vitas\?q\=coreD%3A25
DEBUG output created by Wget 1.15 on linux-gnu.

URI encoding = `UTF-8'
--2015-05-08 21:56:55--
http://10.0.3.113:8080/solr/collection1/vitas?q=coreD%3A25
Łączenie się z 10.0.3.113:8080... połączono.
Created socket 3.
Releasing 0x0000000000aa35d0 (new refcount 0).
Deleting unused 0x0000000000aa35d0.

---request begin---
GET /solr/collection1/vitas?q=coreD%3A25 HTTP/1.1
User-Agent: Wget/1.15 (linux-gnu)
Accept: */*
Host: 10.0.3.113:8080
Connection: Keep-Alive

---request end---
Żądanie HTTP wysłano, oczekiwanie na odpowiedź...
---response begin---
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store
Pragma: no-cache
Expires: Sat, 01 Jan 2000 01:00:00 GMT
Last-Modified: Fri, 08 May 2015 19:56:55 GMT
ETag: "14d351a25a9"
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 08 May 2015 19:56:55 GMT
Connection: close

---response end---

  HTTP/1.1 400 Bad Request
  Server: Apache-Coyote/1.1
  Cache-Control: no-cache, no-store
  Pragma: no-cache
  Expires: Sat, 01 Jan 2000 01:00:00 GMT
  Last-Modified: Fri, 08 May 2015 19:56:55 GMT
  ETag: "14d351a25a9"
  Content-Type: application/json;charset=UTF-8
  Transfer-Encoding: chunked
  Date: Fri, 08 May 2015 19:56:55 GMT
  Connection: close
Registered socket 3 for persistent reuse.
URI content encoding = `UTF-8'
Skipping 95 bytes of body:
[{"responseHeader":{"status":400,"QTime":2},"error":{"msg":"undefined field
coreD","code":400}}
] done.
2015-05-08 21:56:55 BŁĄD 400: Bad Request.



pozdrawiam,
LAFK

2015-05-05 17:44 GMT+02:00 marotosg <marot...@gmail.com>:

> Thanks for the answer but i don't think that's going to solve my
> problem.For
> instance if I copy this query in the chrome
> browserhttp://localhost:8080/solr48/person/select?q=CoreD:25I get this
> error.4001CoreD:25undefined field CoreD400If I use wget  from linux wget
> http://localhost:8080/solr48/person/select?q=CoreD:25I get ERROR:400 Bad
> Request.Is any reason why I am not getting same error?Thanks
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-Exception-The-remote-server-returned-an-error-400-Bad-Request-tp4203889p4203949.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to