Forgive me if this seems like a dumb question but have you tried the Apache_Solr_Service class?
http://www.ibm.com/developerworks/library/os-php-apachesolr/index.html It's really quite good at handling the nuts and bolts of making the HTTP requests and decoding the responses for PHP. I almost always use it when working from PHP. It's all over Google so I don't know how someone would miss it but I don't know why else someone would bother curling a GET to SOLR otherwise. -- Steve On Dec 15, 2010, at 4:22 AM, Dennis Gearon wrote: > I finally figured out how to use curl to GET results, i.e. just turn all > spaces > into '%20' in my type of queries. I'm using solar spatial, and then searching > in > both the default text field and a couple of columns. Works fine on in the > browser. > > But if I query for it using curl in PHP, there's an error somewhere in the > JSON. > I don't know if it's in the PHP food chain or something else. > > > Just putting my solution to GETing from curl in PHP and my problem up here, > for > others to find. > > Of course, if anyone knows the answer, all the better. > > Dennis Gearon > > > Signature Warning > ---------------- > It is always a good idea to learn from your own mistakes. It is usually a > better > idea to learn from others’ mistakes, so you do not have to make them > yourself. > from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036' > > > EARTH has a Right To Life, > otherwise we all die. >