I'm not sure it will work for you, but take a look at httplib...
Something like:
conn = httplib.HTTPConnection(server, port)
conn.request("POST", path, post_data, {'content-type':'text/plain'})
resp = conn.getresponse()
conn.close()
...may work for you. Mind you, I've never tried doing posts with this, so I
don't know. Maybe it'll try to set content-type itself. Also, you may need to
set additional headers.
good luck,
Jason
Quoting "Bud P. Bruegger" :
> For testing, I would like to post to my Quixote app with a content type
> of plain/text. It seemed that neither urllib nor urllib2 does this. Any
> suggestions on how to wip up a quick test?
>
> thanks
> -b
>
>
>
--------------------------------------------------------------------------------
-----------------
> Ing. Bud P. Bruegger, Ph.D. bud@comune.grosseto.it
> Servizio Elaborazione Dati 0564-488 577 (voice)
> Comune di Grosseto 0564- 21139 (fax)
> Via Ginori, 43
> 58100 Grosseto
>
> Collaborazione Open Source per la CIE e CNS
> http://www.comune.grosseto.it/cie/
>
> Open Source in P.A.: Non solo una buona idea, ma una necessita'
>
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>