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
xOo0ƿCRĵHHih'!k-lH\Zğ]I4udC(]LLЮ\,[z~#fLL(X64a%tia#}-Դi&uHuoآZOteZNsc5(6A^, ,h`/UH .E5* !cNDF#uoZ`ҍBR=`X34nNF2kPp>3̼ M V1C4RSfF9 ppfN/dj5?Ěrͨ}朰p'75;:/i]X*D%ARg?}r>V.Q(E4t%vԌ xuE-ٶtp9m{\xg i鰊ÿފ?(|(䭳^$i1?K5eM~G

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秒.或者更长.这样就不会有这个问题了.