A best approach to a creating specified http post body
Dave Borne
dborne at gmail.com
Fri May 18 09:57:17 EDT 2007
> I need to build a special http post body that consists of :
> name=value +\r\n strings.
> Problem is that depending on operations the number of name,value
> pairs can increase and decrease.
> Values need to be initialized at runtime, so storing premade text
> files is not possible.
I'm not completely understanding your problems here. Can you explain
why urllib.urlencode wouldn't work?
(http://docs.python.org/lib/module-urllib.html)
Thanks,
-Dave
More information about the Python-list
mailing list