A best approach to a creating specified http post body

Shane Geiger sgeiger at ncee.net
Fri May 18 10:09:32 EDT 2007


Why not use scotch.recorder?



Dave Borne wrote:
>> 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
>   

-- 
Shane Geiger
IT Director
National Council on Economic Education
sgeiger at ncee.net  |  402-438-8958  |  http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sgeiger.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20070518/06e72c4e/attachment.vcf>


More information about the Python-list mailing list