[Grok-dev] Re: Using POST request
Uli Fouquet
uli at gnufix.de
Fri Mar 21 14:58:16 EDT 2008
Hi there,
Martijn Faassen wrote:
[snip]
> Does setup.py do a multipart/form style POST request, or does it send
> something different altogether?
Yes, multipart/form as follows (backslashes inserted by me). I can't see
anything illegal in there, which does not mean anything. As said, a
browser request with similar data works. Maybe the publisher gurus here
have an idea?
POST /eggs HTTP/1.1
Host: localhost:8080
Accept-Encoding: identity
Content-type: multipart/form-data; \
boundary=--------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-length: 3948
Authorization: Basic dWxpZjpmbG9yaWFu
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="comment"
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="protcol_version"
1
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="md5_digest"
9c642516b88e5a14c517adb271f63b3d
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="filetype"
sdist
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name=":action"
file_upload
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="pyversion"
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; \
name="content";filename="Sample-0.0.tar.gz"
[lots of binary data]
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="version"
0.0
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254
Content-Disposition: form-data; name="name"
Sample
----------------GHSKFJDLGDS7543FJKLFHRE75642756743254--
Best regards,
--
Uli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20080321/6bb01d7a/attachment.bin
More information about the Grok-dev
mailing list