🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #12352

Re: �ʣ�java.net.HttpURLConnection

#12352
From: 98CS~��è~�����Կ�����
Date: Fri, 30 Jul 2004 04:13
23 lines
2135 bytes
��������,��������Ϊpost

HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setDoOutput(true);

Ȼ����ǰѲ�������ȥ,��ʽ����:
String para = "par1name=" + par1value + "&par2name=" + par2value ...
PrintWriter out = new PrintWriter(connection.getOutputStream());
out.print( para );

�� �� kirby (ϲ�������ˣ��Dz��DZ����ˣ�) �Ĵ������ᵽ: ��
: �����һ��URLConnection�������POST��ȥ��parameters��


--
  ��        ������                                                   ��
          �����ب���           �����ϣ��?��                          
          ����  ����                        ������ xeon                
          �����Ш��ة�����������������������������������������������   
            ������               jowtte@sina.com.cn                    
  ��                                                                 ��
�� ��Դ:���Ұ��Ͽ�վ nkbbs.org��[FROM: 202.108.245.164] 
Technical Details
Message-ID: <4DQPiX$9WI@bbs.nankai.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news2.happynet.org!NanKai

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,d67a97b27d820597
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news2.happynet.org!NanKai
From: xeon.bbs@bbs.nankai.edu.cn (98CS~��è~�����Կ�����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: �ʣ�java.net.HttpURLConnection
Date: 30 Jul 2004 04:13:01 GMT
Organization: �Ұ��Ͽ�վ
Message-ID: <4DQPiX$9WI@bbs.nankai.edu.cn>
X-Filename: Java/M.1091160417.A