tags: Mobile ASP.net ASP Eclipse program
public static String getPostString(String mobile) throws HttpException, IOException
{
HttpClient hc=new HttpClient();
PostMethod pm=new PostMethod("http://www.ip138.com:8080/search.asp"); /*Search page url*/
hc.getParams().setContentCharset("gb2312");
pm.addParameter("mobile",mobile); /*Retrieve the parameters of the page 1*/
pm.addParameter("action","mobile"); /*Retrieve the parameters of the page 2*/
hc.executeMethod(pm);
System.out.println("GET POST STRING: "+pm.getResponseBodyAsString());
return pm.getResponseBodyAsString();
}
public static void getMobileInfor(String poststring) throws ParserException
{
Parser parser=new Parser(poststring);
NodeList nodelist=null;
NodeFilter filter=new HasAttributeFilter("class","tdc2"); /*Filters the content of the page and extracts the content of class tdc2*/
nodelist=parser.extractAllNodesThatMatch(filter);
for(int i=0;i<nodelist.size();i++)
{
System.out.println("data"+i+ ":"+nodelist.elementAt(i).toPlainTextString().replace(" ",""));
}
}
First of all, the configuration system ofnetcore is currently the most commonly -based configuration, such as JSON, XML files, and of course there are other commandline, EnvironmentVariables. 1. First...
Create a SpringBoot project and introduce dependencies The idea is this: 1. When the user logs in successfully, a Token is randomly created, and then stored in the session and Redis respectively 2. Co...
description There are a series of points on the plane. Returns the largest area of a triangle that can be formed by three points. Description 3 <= points.length <= 50. The points will not be r...
1. Create a project, apply 2. Modify configuration Modify YU1 \ YU1 \ Settings.py file installed_apps, add a line 'yuapp', templates, modify 'DIRS': [Base_Dir + "/ Templates",], 3. Modify YU...
HashSet source code analysis: Let’s take a look at its construction method: Uh~~ Its underlying layer is actually implemented using HashMap, subverting the three views. So how is it used? Contin...
This object is column to write the 2017-19 update repair multi-NIC to get IP issues. Function call getIdleport (Callback: (portback: (port: Number, IP ?: string) => void)Winning this airline port i...
topic Topic link Check the subtree. You have two very large binary trees: T1, with tens of thousands of nodes; T2, with tens of thousands of nodes. Design an algorithm to determine whether T2 is a sub...
Introduction The working principle of insertion sort is that for each unsorted data, insert it into the previously sorted data, and compare the insertion from back to front step: Starting from the fir...
Please indicate the source for reprinting: In Android development, I believe that everyone is familiar with the interface shown in the figure below, and the frequency of use of this pop-up box is also...
JS carousel map – seamless scrolling Use the relative positioning to change the left value to achieve the carousel scrolling effect....