
 Louis-Charles - 2009-03-30 12:25:04 - 
In reply to message 3 from Manuel LemosI have a REST web service with digest authentication.
When I send 100 POST requests, the server don't create 100 items (it create 94-97 items).
After verification, I found out that the server received all initial requests, but reply with a 401 code to request digest authentication (normal up to here).  For the majority of the request, a 201 status code (that means item created) is logged.  However, for 3-6 items, this status is not logged and the item is not created.
On the client, using the http class, I identified a difference between a request that works and one that doesn't.  This difference is in the $http->response_status variable.  If the request "work", the variable have something else it's empty.  I check this variable after the ReadReplyHeaders call and the function doesn't return any error.
To work around this issue, I have a loop that resend the request until the $http->response_status variable is set.  I just feel that this loop should be inside the http class.
Thank you for taking time to look at my request.