import java.io.IOException;import java.io.OutputStream;import java.net.Socket;import java.net.UnknownHostException;import java.sql.ResultSet;import org.sql.IntoDB;public class BaiduReferer {public static void main(String[] args) throws UnknownHostExc
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/03 01:24:18
import java.io.IOException;import java.io.OutputStream;import java.net.Socket;import java.net.UnknownHostException;import java.sql.ResultSet;import org.sql.IntoDB;public class BaiduReferer {public static void main(String[] args) throws UnknownHostExc
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.sql.ResultSet;
import org.sql.IntoDB;
public class BaiduReferer {
public static void main(String[] args) throws UnknownHostException,
IOException,InterruptedException {
for(int i=0;i
import java.io.IOException;import java.io.OutputStream;import java.net.Socket;import java.net.UnknownHostException;import java.sql.ResultSet;import org.sql.IntoDB;public class BaiduReferer {public static void main(String[] args) throws UnknownHostExc
呵呵 朋友你在为百度做压力测试么?
百度有防同一IP地址访问压力过大的屏蔽.
要是这样的话.
建议你把你的Socket 设置为多线程模式.进行sleep休眠.比如说访问一次停止2秒.或者更长.这样就不会有这个问题了.