I want to just pass the JSON through after qualifying the user's access to the 
site. 


Didn't want to spend the horse power to receive it as PHP array syntax, run the 
risk of someone putting bad stuff in the contents and running 'exec()' on it, 
and then spending the extra horsepower to putput it as json.

I had that page up in the browwser to look at it later. If it deons't do the 
above, I will be glad to have the Solr access abstracted, thanks :-)


 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.



----- Original Message ----
From: Stephen Weiss <swe...@stylesight.com>
To: solr-user@lucene.apache.org
Sent: Wed, December 15, 2010 1:36:11 AM
Subject: Re: Problem using curl in PHP to get Solr results

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.
>

Reply via email to