html:
<Form action="get.jsp" method="post">
<input type="text" name="text1" value="temp">
</Form>get.jsp:
<%
String = temp;
temp = (String)request.getParameter("text1"); //取得post的参数
%>
<Form action="get.jsp" method="post">
<input type="text" name="text1" value="temp">
</Form>get.jsp:
<%
String = temp;
temp = (String)request.getParameter("text1"); //取得post的参数
%>
我是说如何在java程序中通过一个网站的80端口向这个网站的一个ASP页面POST请求,然后GET这个网站里指定的页面。这应该是socket通讯的问题。不是指页面。
uc=u.openConnection();
uc.setRequestProperty("contentType","text/html; charset=gb2312");
uc.setDoInput (true); theData=uc.getInputStream();
URL u=null;
URLConnection uc=null;