A best approach to a creating specified http post body
dzawer at gmail.com
dzawer at gmail.com
Fri May 18 10:14:20 EDT 2007
On May 18, 4:57 pm, "Dave Borne" <dbo... at gmail.com> 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
Hmm, I guess I meant something different by using "body"- I meant
request data part and not the thing sent in ulr string.
More information about the Python-list
mailing list