2

I would appreciate an example on how to perform an async HTTP POST request using Python's GIO binding.

Edit: Example sought without using Twisted.

jldupont
  • 93,734
  • 56
  • 203
  • 318

2 Answers2

1

An example using Twisted Deferred objects is available on James Henstridge's blog.

eswald
  • 8,368
  • 4
  • 28
  • 28
0

Sorry this is not HTTP POST (just GET), but it is using Gio to asynchronously request a URL, with a callback that processes the resulting data when it's done downloading.

https://github.com/robru/gottengeography/blob/65505bd0cf0060ec7397849e7c62c231367c7f1d/gg/datatypes.py#L242

robru
  • 2,313
  • 2
  • 29
  • 38