Article View: cn.bbs.comp.lang.java
Article #12143Re: ����HttpURLConnection POST��ʽ���ӵ�����
From: Rain
Date: Thu, 05 Aug 2004 11:34
Date: Thu, 05 Aug 2004 11:34
21 lines
2114 bytes
2114 bytes
Ӧ��������OR��һ��
�� �� tianlanlan@bbs.pku.edu.cn (CS^00^@����Ϲ�ת�ͣ��ٺ�) �Ĵ������ᵽ: ��
: ��֪����ȷ�ķ�ʽ��Σ��������δ��뾿���ĸ����أ����Ƕ����أ�
: ţ����������
: String u="http://localhost:8080/jsp/search.jsp?tsmc=data";
: URL url = new URL(u);
: HttpURLConnection con = (HttpURLConnection) url.openConnection();
: con.setRequestMethod("POST");//ֻ����һ��Ϳ�����
: //����Ϊ�����Ӧ��Ϣ
: BufferedReader rd = new BufferedReader(new InputStreamReader(con.getInputStrea
: m(),"GB2312"));
: String line;
: .................������ʡ�ԣ�
--
[1;32;40m �Ĭ� �� �� �� �� �� �ܡ� �ܡ�
�ĬĬģ����� ���� ������ ���� ���� �� ��
�ĬĬ� ���� �� �� ���� �� �� �� �� ����
�Ĭ� ����Ȧ������Ȧ������ŤŤ��ƨ��ŤŤ����Ͳ����ϣ���
[m[1;37m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.161.197.161][m
Technical Details
Message-ID:
<4DVMRE$9eG@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!wn13feed!worldnet.att.net!63.223.20.72!sjc1.usenetserver.com!news.usenetserver.com!news.bylinux.net!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,348cd800c7f102b0 X-Google-Attributes: gidf6cb0,public X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!wn13feed!worldnet.att.net!63.223.20.72!sjc1.usenetserver.com!news.usenetserver.com!news.bylinux.net!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SJTU From: springrain.bbs@bbs.sjtu.edu.cn (Rain) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ����HttpURLConnection POST��ʽ���ӵ����� Date: 05 Aug 2004 11:34:21 GMT Organization: ��ˮ˼Դ Message-ID: <4DVMRE$9eG@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1091705630.A Lines: 21