??????urllib post????????????
O.R.Senthil Kumaran
orsenthil at gmail.com
Thu Sep 6 23:45:44 EDT 2007
* Eric Abrahamsen <eric at abrahamsen.com> [2007-09-06 11:18:29]:
> It's in Chinese, so ASCII is no go. If anyone's interested in
> answering his question (he's trying to download a linked file using
> the post method from urllib tools, not something I know about) I can
Python doc explains urllib post method:
http://docs.python.org/lib/module-urllib.html
import urllib
>>> params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>>> f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
>>> print f.read()
Hope this helps.
-
Senthil
> On Sep 6, 2007, at 10:40 AM, O.R.Senthil Kumaran wrote:
>
> > If possible, please post your query in ASCII.
> >
> > --
> > Senthil
> >
> >
> > * liangxuliang79 at gmail.com <liangxuliang79 at gmail.com> [2007-09-05
> > 05:03:33]:
> >
> >> ????www.mmmppp333.com??????????http://ishare.iask.sina.com.cn/cgi-
> >> bin/
> >> fileid.cgi?fileid=844050
> >> ??????post fileid=844050????????
> >>
> >> ????post????????????fileid=844050??????server??????????header??
> >> header????local????location????
> >> ??????????????????????????????????????????????
> >> mp3????????????????????????????local????????????
> >> mp3??????????????????????????????????
> >> ??????????????????????????????
> >>
> >> ??????????????python??urllib????????urllib?????????????????????×?
> >> local????????????????local????????mp3????????
> >> ????????????????mp3.??
> >>
> >> ??post????????/download.php?? post????????
> >> fileid=844050????????????????????????????????????????????????????
> >> ????????????????????web??????????????????????
> >> --
> >> http://mail.python.org/mailman/listinfo/python-list
> > --
> > O.R.Senthil Kumaran
> > http://uthcode.sarovar.org
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
> --
> http://mail.python.org/mailman/listinfo/python-list
--
O.R.Senthil Kumaran
http://uthcode.sarovar.org
More information about the Python-list
mailing list