[Zope3-Users] Accessing raw post data

Edoardo Serra edoardo.serra at satisfly.com
Wed Jul 21 13:33:29 EDT 2010

Hi guys,
	I need to access the body of an HTTP POST request.

The request has content type of 'application/json' and the body is a JSON-encoded string.

I tried to access the bodyStream attribute of the BrowserRequest object but it always returns an empty string.

I used a network analyzer to see the content of the HTTP Request which follows:

POST /facebook-realtime-callback.html HTTP/1.1
Host: www.satisfly.com
Accept: */*
Content-Type: application/json
X-Hub-Signature: sha1=d2a5fd64c731bfdc50578db1a297b195853b5bac
Content-Length: 173


I'm using Zope 3.3.1 on debian etch

Your help would be really appreciated


Edoardo Serra

66/F The Center
99 Queen's Road Central
Hong Kong


More information about the Zope3-users mailing list