Hi Willy, I'm sorry, I think these two features are actullay the same, so I just give you one patch. Maybe you should do some optimization for my code, but it's works now. Now we can use:
option httpchk GET /http-check.php HTTP/1.0
http-check expect ! status 2..
server www1 10.10.9.146:80 cookie A check port 80 inter 2000 rise 2
fall 2
or
http-check expect status 2..
http-check expect ! status ^2.*
http-check expect status 200
and we also can use:
http-check expect string ABCD
http-check expect ! string ABCD
http-check expect string ^AB.*D$
http-check expect ! string ^AB.*D$
Regards!
finalbsd
2009/2/19 FinalBSD <[email protected]>
> OK, I'll try to do it.
>
> Thanks
> Finalbsd
>
> 2009/2/19 Willy Tarreau <[email protected]>
>
>> On Thu, Feb 19, 2009 at 03:00:52PM +0800, FinalBSD wrote:
>>
>> > Of course, but how can I do it?
>>
>> just use the snapshot found here :
>>
>> http://haproxy.1wt.eu/download/1.3/src/snapshot/
>>
>> (it should be haproxy-ss-20090207).
>>
>> It would be nice if you could separate the two features in two incremental
>> patches :
>> - expect string
>> - expect status
>>
>> Thanks!
>> Willy
>>
>>
>>
>
>
haproxy-ss-20090207.patch
Description: Binary data

