Re: A best approach to a creating specified http post body

2007-05-18 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > Hmm, I guess I meant something different by using "body"- I meant > request data part and not the thing sent in ulr string. You should specify better what you need yes. See, to send POST information in an http request, you can do the following... >>> urllib2.urlopen(m

Re: A best approach to a creating specified http post body

2007-05-18 Thread dzawer
On May 18, 4:57 pm, "Dave Borne" <[EMAIL PROTECTED]> 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 r

Re: A best approach to a creating specified http post body

2007-05-18 Thread Shane Geiger
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 t

Re: A best approach to a creating specified http post body

2007-05-18 Thread Dave Borne
> 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 comp

A best approach to a creating specified http post body

2007-05-18 Thread dzawer
Hi all, I'm rather new to python but not exaclty without programming experience and not quite get best pyhton practices. I have a following problem that it seems I cannot find a way to solve correctly. I need to build a special http post body that consists of : name=value +\r\n strings. Problem