|
Posted by Bonge Boo! on 07/02/06 15:35
On 1/7/06 14:06, in article ggsca2t750pabo4q693ea91jec7jljojft@4ax.com,
"Andy Hassall" <andy@andyh.co.uk> wrote:
>> http://www.blahbh.com/zippo/Search.ASP?WCI=AddToPortFolio%26PAGE%3D1%26DEL%3
>> D%26PropertyID%3D00595876%26GTYP%3D0%26ID%3D0009185%26PER%3D10%26XSLT%3D-1%2
>> 6GID%3D580%26SQL%3D2+AND+Property.EstateAgentID+%3D+580+AND+%28Property.Inst
>> ructionLevel+%3C+2%29+AND+%28%28Property.Price+%2A+CurrencyConversion.Value%
>> 29+%3C%3D+99000000+AND+%28Property.Price+%2A+CurrencyConversion.Value%29+%3E
>> %3D+0%29%29+AND+Property.Price+%3C%3D+300000
>
> Are you sure the server accepts POST for the page?
Absolutely. All the sample pages I have been examining, which work, use
POST.
>> I think it must be a misunderstanding on my part about using curl(). If you
>> have a moment, and don't mind, could you take a look through this and look
>> for any screamers?
>>
>> $query .= "&PAGE=1";
>> $query .= "&DEL=";
>> $query .= "&PropertyID=00595876";
>> $query .= ">YP=0";
>> $query .= "&ID=0000000";
>> $query .= "&PER=10";
>> $query .= "&XSLT=-1";
>> $query .= "&GID=400";
>> $query .= "&SQL=2 AND Property.EstateAgentID = 580 AND
>> (Property.InstructionLevel < 2) AND ((Property.Price *
>> CurrencyConversion.Value) <= 99000000 AND (Property.Price *
>> CurrencyConversion.Value) >= 0)) AND Property.Price <= 300000";
>>
>> // create a new curl resource
>> $ch = curl_init();
>> // set URL and other appropriate options
>> curl_setopt($ch, CURLOPT_URL, $url);
>> curl_setopt($ch, CURLOPT_HEADER, 0);
>> curl_setopt($ch, CURLOPT_POST, 1);
>> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
>> curl_setopt($ch, CURLOPT_REFERER, "http://www.blahbl.com/
>> zippo/Search.ASP?WCI=AddToPortFolio");
>> curl_setopt($ch, CURLOPT_POSTFIELDS, urlencode($dezrez_query));
>
> You've just encoded all the "&" and "=" separators; you should be encoding
> the
> keys and values separately and joining them up with "&" and "=".
Done that. Still fails. I get returned a 1, which I assume indicates curl
succeeded, but nothing else returned to the $string I pass the result of the
curl to.
Navigation:
[Reply to this message]
|