Redian新闻
>
大家说的SUN的JEE Tutorial是这个吗?
avatar
大家说的SUN的JEE Tutorial是这个吗?# Java - 爪哇娇娃
d*8
1
WebClient client = new WebClient();
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.2; .NET CLR 1.0.3705;)");
Stream strm=client.OpenRead("http://finance.yahoo.com/q?s=goog");
读取的网页是yahoo的error页面
To get a quote, enter a company name or stock symbol in the quote box above.
而控制台下直接运行 wget -O - http://finance.yahoo.com/q?s=goog没有问题,请问如何避开被yahoo发现是程序运行的webclient呢?
avatar
a9
3
抓一下包看看发的内容是什么。

Windows
above.

【在 d******8 的大作中提到】
: WebClient client = new WebClient();
: client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows
: NT 5.2; .NET CLR 1.0.3705;)");
: Stream strm=client.OpenRead("http://finance.yahoo.com/q?s=goog");
: 读取的网页是yahoo的error页面
: To get a quote, enter a company name or stock symbol in the quote box above.
: 而控制台下直接运行 wget -O - http://finance.yahoo.com/q?s=goog没有问题,请问如何避开被yahoo发现是程序运行的webclient呢?

avatar
n*n
4
就是这个了.
avatar
d*8
5
谢谢,怎么抓包呢?

【在 a9 的大作中提到】
: 抓一下包看看发的内容是什么。
:
: Windows
: above.

avatar
a9
6
wireshark?

【在 d******8 的大作中提到】
: 谢谢,怎么抓包呢?
avatar
s*o
7
通过queryParam 之类的method call传入s=goog,而不是直接包括在URI中,可能会解
决你的问题
avatar
d*8
8
查了下,不知道这个怎么用。
自己用xampp做了个代理中转了下就可以了。
用php和command line下载页面(包含s=goog)都没问题,但是c#就不行,不知道yahoo
能读到哪些信息做出了warning的决定。

【在 s***o 的大作中提到】
: 通过queryParam 之类的method call传入s=goog,而不是直接包括在URI中,可能会解
: 决你的问题

avatar
s*o
9
感觉更像是s=goog没有传过去而不是因为server side发现更多其他信息。
queryParam是jax-rs里的。你用的Web client对query string有没有特殊的处理方式?

yahoo

【在 d******8 的大作中提到】
: 查了下,不知道这个怎么用。
: 自己用xampp做了个代理中转了下就可以了。
: 用php和command line下载页面(包含s=goog)都没问题,但是c#就不行,不知道yahoo
: 能读到哪些信息做出了warning的决定。

avatar
d*8
11
quotes are delayed by 15min.

【在 N********n 的大作中提到】
: No need to go through a quote page. You can get the quote data
: from YAHOO CSV query.
: http://www.gummy-stuff.org/Yahoo-data.htm

avatar
d*8
12
没有特殊处理。应该不是s=goog没有传过去,因为我local传递没问题。
btw, 昨天试了下wget -O - www.nasdaq.com,直接给了403拒绝。我觉得,yahoo的服
务器也能够检测client。就是不知道.net能不能欺骗yahoo/nasdaq。

【在 s***o 的大作中提到】
: 感觉更像是s=goog没有传过去而不是因为server side发现更多其他信息。
: queryParam是jax-rs里的。你用的Web client对query string有没有特殊的处理方式?
:
: yahoo

avatar
N*n
13

Quote pages are probably delayed too. True real-time data always
charges a fee.

【在 d******8 的大作中提到】
: quotes are delayed by 15min.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。