有没有办法 在我的网站调用别人网站上的某个功能

zx362168897 2013-07-24 02:34:31
比如 我的一个搜索功能 然后获取对方想要搜索的值 我通过这个值 找到百度 通过百度的搜索去实现结果?
也就是我完全相当于一个中介的那种性质 有没有办法?
...全文
301 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
S117 2013-07-25
  • 打赏
  • 举报
回复
引用 11 楼 zx362168897 的回复:
[quote=引用 10 楼 longtian1213 的回复:] [quote=引用 9 楼 zx362168897 的回复:] [quote=引用 8 楼 longtian1213 的回复:] [quote=引用 7 楼 zx362168897 的回复:] [quote=引用 4 楼 longtian1213 的回复:] 如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数[/quote] 你可以用httpclient把他网页源码弄过来看一下呀!然后再决定怎么传参呀![/quote] 我模拟发送请求 代码是: HttpClient clinet=new HttpClient(); HttpMethod method=new PostMethod("http://www.doulaig.com/"); clinet.executeMethod(method); byte[] responseBody = method.getResponseBody(); //处理内容 PrintWriter pw = response.getWriter(); pw.write(new String(responseBody)); pw.flush(); pw.close(); method.releaseConnection(); 输出来 图标有变 但是内容变成 好像被过滤掉了?我模拟百度倒是可以[/quote] 没,那网站貌似是flex做的!这招只对html的好使![/quote]亲 有没有办法只获取上面输入QQ号码的那个 其余的无所谓 我就想要那功能[/quote] flash的网站,你只能让他给你提供调用接口了!再想不出有什么方法啦!因为那个输入框是flash的,不是input
zx362168897 2013-07-25
  • 打赏
  • 举报
回复
引用 10 楼 longtian1213 的回复:
[quote=引用 9 楼 zx362168897 的回复:] [quote=引用 8 楼 longtian1213 的回复:] [quote=引用 7 楼 zx362168897 的回复:] [quote=引用 4 楼 longtian1213 的回复:] 如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数[/quote] 你可以用httpclient把他网页源码弄过来看一下呀!然后再决定怎么传参呀![/quote] 我模拟发送请求 代码是: HttpClient clinet=new HttpClient(); HttpMethod method=new PostMethod("http://www.doulaig.com/"); clinet.executeMethod(method); byte[] responseBody = method.getResponseBody(); //处理内容 PrintWriter pw = response.getWriter(); pw.write(new String(responseBody)); pw.flush(); pw.close(); method.releaseConnection(); 输出来 图标有变 但是内容变成 好像被过滤掉了?我模拟百度倒是可以[/quote] 没,那网站貌似是flex做的!这招只对html的好使![/quote]亲 有没有办法只获取上面输入QQ号码的那个 其余的无所谓 我就想要那功能
S117 2013-07-25
  • 打赏
  • 举报
回复
引用 9 楼 zx362168897 的回复:
[quote=引用 8 楼 longtian1213 的回复:] [quote=引用 7 楼 zx362168897 的回复:] [quote=引用 4 楼 longtian1213 的回复:] 如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数[/quote] 你可以用httpclient把他网页源码弄过来看一下呀!然后再决定怎么传参呀![/quote] 我模拟发送请求 代码是: HttpClient clinet=new HttpClient(); HttpMethod method=new PostMethod("http://www.doulaig.com/"); clinet.executeMethod(method); byte[] responseBody = method.getResponseBody(); //处理内容 PrintWriter pw = response.getWriter(); pw.write(new String(responseBody)); pw.flush(); pw.close(); method.releaseConnection(); 输出来 图标有变 但是内容变成 好像被过滤掉了?我模拟百度倒是可以[/quote] 没,那网站貌似是flex做的!这招只对html的好使!
zx362168897 2013-07-25
  • 打赏
  • 举报
回复
引用 8 楼 longtian1213 的回复:
[quote=引用 7 楼 zx362168897 的回复:]
[quote=引用 4 楼 longtian1213 的回复:]
如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!

我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数[/quote]
你可以用httpclient把他网页源码弄过来看一下呀!然后再决定怎么传参呀![/quote]
我模拟发送请求
代码是:

HttpClient clinet=new HttpClient();
HttpMethod method=new PostMethod("http://www.doulaig.com/");
clinet.executeMethod(method);
byte[] responseBody = method.getResponseBody();
//处理内容
PrintWriter pw = response.getWriter();
pw.write(new String(responseBody));
pw.flush();
pw.close();
method.releaseConnection();

输出来
图标有变 但是内容变成

好像被过滤掉了?我模拟百度倒是可以
zx362168897 2013-07-25
  • 打赏
  • 举报
回复
引用 9 楼 zx362168897 的回复:
[quote=引用 8 楼 longtian1213 的回复:] [quote=引用 7 楼 zx362168897 的回复:] [quote=引用 4 楼 longtian1213 的回复:] 如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数[/quote] 你可以用httpclient把他网页源码弄过来看一下呀!然后再决定怎么传参呀![/quote] 我模拟发送请求 代码是: HttpClient clinet=new HttpClient(); HttpMethod method=new PostMethod("http://www.doulaig.com/"); clinet.executeMethod(method); byte[] responseBody = method.getResponseBody(); //处理内容 PrintWriter pw = response.getWriter(); pw.write(new String(responseBody)); pw.flush(); pw.close(); method.releaseConnection(); 输出来 图标有变 但是内容变成 好像被过滤掉了?我模拟百度倒是可以[/quote]我已经偷到他整个网页的swf了 能不能暴力破解 修改?
S117 2013-07-24
  • 打赏
  • 举报
回复
引用 7 楼 zx362168897 的回复:
[quote=引用 4 楼 longtian1213 的回复:] 如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数[/quote] 你可以用httpclient把他网页源码弄过来看一下呀!然后再决定怎么传参呀!
zx362168897 2013-07-24
  • 打赏
  • 举报
回复
引用 4 楼 longtian1213 的回复:
如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
我怎么能知道 对方 搜索框的name是什么 不然的话怎么传参数
zx362168897 2013-07-24
  • 打赏
  • 举报
回复
引用 2 楼 AA5279AA 的回复:
有, 除非人家提供API接口。。 否则你只能利用URL模拟请求发送然后接受返回值返回给你的用户。
有没有关于这方面的技术 我就是想弄个小偷程序
lzh_me 2013-07-24
  • 打赏
  • 举报
回复
除了上面提到的方式,IBM portal 有个切片功能可以实现,这个功能挺赛,不需要经过目标网站的同意,在对方的页面上划出一块区域来展示在我的页面中。实现原理不清楚。 当然,这个对你问的问题没有任何帮助。
S117 2013-07-24
  • 打赏
  • 举报
回复
如果有webservice接口,你就去掉吧!没有就用httpclient模拟http请求!
  • 打赏
  • 举报
回复
别人给你开个webservice否则你用模拟http请求也可也
失落夏天 2013-07-24
  • 打赏
  • 举报
回复
有, 除非人家提供API接口。。 否则你只能利用URL模拟请求发送然后接受返回值返回给你的用户。
tony4geek 2013-07-24
  • 打赏
  • 举报
回复
数据采集吧。小偷程序。

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧