Consider the following
import strutils, httpclient
let s1 = "http://en.wikipedia.org/w/index.php?title=Special%3ASearch&profile=default&search=test&fulltext=Search"
echo getContent(s1)
always yields 404
web.nim(6) GetInfoFromCache
httpclient.nim(382) getContent
Error: unhandled exception: 404 Not Found [HttpRequestError]
c:\nim\lib\pure\uri.nim(30, 13) Warning: $ is deprecated [Deprecated]
c:\nim\lib\pure\uri.nim(31, 11) Warning: $ is deprecated [Deprecated]
c:\nim\lib\pure\uri.nim(45, 12) Warning: / is deprecated [Deprecated]
Error: execution of an external program failed
(Nim Compiler Version 0.10.2 (2014-12-30) [Windows: amd64])
AFAIK doing a getContent on a simple url (without '.php?') works fine.
Any clues?
thanks!