WORequest formValues return null for certain bot
WORequest formValues return null for certain bot
- Subject: WORequest formValues return null for certain bot
- From: Cedarstone <email@hidden>
- Date: Fri, 7 Jul 2006 17:34:29 +0100
Hi All
We have an application that has been running for a while with no
noticeable problems. However in recent days the HenryTheMiragoRobot
(217.154.245.244 & 217.154.245.249) has been causing an internal
server error when visiting our site. No other requests from bots or
browsers seem to trigger this.
The problem appears to be that when WORequest.formValues() is called
in part of our code it returns null rather than an empty NSDictionary
as it would normally. The null then trips us over.
Looking at the WORequest.formValues() method code it appears that
this can happen when _contentType() is not equal to either
"application/x-www-form-urlencoded" or "multipart/form-data".
Is contentType normally set for a simple GET request, I thought this
was only set as part of the response? Does this look like a
malformed bot or an error by us? Anybody had and recent problems with
HenryTheMiragoRobot?
Ideas?
Regards
Giles
a WONewbie.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden