由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - [转载] 怎么样不通过Browser 从java program直接提交信息
相关主题
FORM中用POST时数据是怎么打包传送的?is this possible
怎么设置可以看到CODE?一个web programming的基本问题
[转载] 可不可以认为URL中REFERER为空的基本是重复访问者[转载] how can I monitor who are connecting to my Apache
有谁知道怎么在网页中写数学符号?[转载] Help!! Does XML tags have reserved word? Such as.
问个perl Mechanize问题如何避免不同浏览器的浏览效果不同的问题?//bow
急问, 在那里post 网页使别人也能看到?哪位能推荐个cross browser设计的工具
Re: 求助: 关于Perl and Javas请问如何让IE提示将CGI返回的结果保存为文件?
把你的网站加入搜索引擎other urls Re: 怎么设置可以看到CODE?
相关话题的讨论汇总
话题: program话题: browser话题: java话题: submit话题: any
进入BuildingWeb版参与讨论
1 (共1页)
w*********n
发帖数: 84
1
【 以下文字转载自 Java 讨论区 】
【 原文由 williamchen 所发表 】
commonly, we just input a URL in a web browser and fill in
the blank and click the 'submit' button.
How could we create java program submit the information to
the server side program directly without opening any browser?
Any example code for that?
Thanks a lot.
a*p
发帖数: 62
2
1. You may use java.net.URLConnection for this aim
2. If you want to do some complicated submit, you may need
to read HTTP standard(RFC) and programming directly.

【在 w*********n 的大作中提到】
: 【 以下文字转载自 Java 讨论区 】
: 【 原文由 williamchen 所发表 】
: commonly, we just input a URL in a web browser and fill in
: the blank and click the 'submit' button.
: How could we create java program submit the information to
: the server side program directly without opening any browser?
: Any example code for that?
: Thanks a lot.

w*********n
发帖数: 84
3
Thanks a lot.
I think my this task is quite complicated, since I'll have to
submit more than one piece of information plus some long ASCII
sequence.
Is there any sample codes for this programming purpose?
Thanks again!

【在 a*p 的大作中提到】
: 1. You may use java.net.URLConnection for this aim
: 2. If you want to do some complicated submit, you may need
: to read HTTP standard(RFC) and programming directly.

a*p
发帖数: 62
4
1.the first question is what is your server program? If your
server program is a normal CGI program (like PHP, Perl etc),
then you have to program using HTTP. I've not seen such java
java program before and I bet it is a little complicated.
2. If your server program will be made by yourself, then you
may do a very simple socket programming, there should be a
lot examples on the web. But note that in IE you can only
create socket to your web host. Say if your java program is
located in http://pig

【在 w*********n 的大作中提到】
: Thanks a lot.
: I think my this task is quite complicated, since I'll have to
: submit more than one piece of information plus some long ASCII
: sequence.
: Is there any sample codes for this programming purpose?
: Thanks again!

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
other urls Re: 怎么设置可以看到CODE?问个perl Mechanize问题
difference:HTTP 200 OK and 201 Created急问, 在那里post 网页使别人也能看到?
谁能帮我一个大忙,先万分感谢!Re: 求助: 关于Perl and Javas
如何让一个域名完全镜像另外一个域名?把你的网站加入搜索引擎
FORM中用POST时数据是怎么打包传送的?is this possible
怎么设置可以看到CODE?一个web programming的基本问题
[转载] 可不可以认为URL中REFERER为空的基本是重复访问者[转载] how can I monitor who are connecting to my Apache
有谁知道怎么在网页中写数学符号?[转载] Help!! Does XML tags have reserved word? Such as.
相关话题的讨论汇总
话题: program话题: browser话题: java话题: submit话题: any