Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11393
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <1248283536@qq.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.158 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.70; '*S*': 0.01; 'urllib2': 0.07; 'subject:login': 0.16; 'to:name:python-list': 0.18; 'right.': 0.28; 'import': 0.28; "skip:' 10": 0.30; 'values': 0.32; "can't": 0.33; 'to:addr:python-list': 0.33; 'response': 0.37; 'header:Mime- Version:1': 0.39; 'subject:with': 0.39; 'appreciated.': 0.39; 'data': 0.39; 'to:addr:python.org': 0.39; 'login': 0.69; 'subject: ': 0.73; 'url:hi': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1313333413; bh=NC7lFS5ILiE+plEVGc0brtKRitKTehZumraduO+syos=; h=X-QQ-SSF:X-QQ-BUSINESS-ORIGIN:X-Originating-IP:X-QQ-STYLE: X-QQ-mid:From:To:Subject:Mime-Version:Content-Type: Content-Transfer-Encoding:Date:X-Priority:Message-ID:X-QQ-MIME: X-Mailer:X-QQ-Mailer; b=NlSmCLVdOKnq2PQou/IwWOP9uVLYTCy2Gec/tRN9YFnHodzj8VRw40s0ZVYJGWheL 4i3eA86Lext6nL6u6tkK0Uw8nOmf8g51Fmu18G9Hwr2odXXhFGS5ZrpTWZwu+N6 |
| X-QQ-SSF | 00000000000000F0000000000000000 |
| X-QQ-BUSINESS-ORIGIN | 2 |
| X-Originating-IP | 113.116.243.63 |
| X-QQ-STYLE | |
| X-QQ-mid | webmail397t1313333412t9087199 |
| From | "守株待兔" <1248283536@qq.com> |
| To | "python-list" <python-list@python.org> |
| Subject | login with urllib2 |
| Mime-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="----=_NextPart_4E47E0A4_DF802758_2D8B9DE6" |
| Content-Transfer-Encoding | 8Bit |
| Date | Sun, 14 Aug 2011 22:50:12 +0800 |
| X-Priority | 3 |
| X-QQ-MIME | TCMime 1.0 by Tencent |
| X-Mailer | QQMail 2.x |
| X-QQ-Mailer | QQMail 2.x |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2272.1313333426.1164.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1313333426 news.xs4all.nl 23895 [2001:888:2000:d::a6]:55884 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:11393 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
please to see my code:
import urllib
import urllib2
url = 'http://hi.baidu.com/'
values = {'username' : '******','password' : '******' }
data = urllib.urlencode(values)
req = urllib2.Request(url,data)
response = urllib2.urlopen(req)
the_page = response.read()
i can't to login ,why?username and password are right.
any word appreciated.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
login with urllib2 "守株待兔" <1248283536@qq.com> - 2011-08-14 22:50 +0800
csiph-web