Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java read from connection even if 404

HttpURLConnection c = (HttpURLConnection)new URL("http://somesite.com").openConnection();
InputStream in = null;
if (c.getResponseCode() >= 400) {
   in = c.getErrorStream();
}  
else {
   in = c.getInputStream();
}
Comment

PREVIOUS NEXT
Code Example
Java :: ciclo for para percorere duas listas java 
Sql :: safe update mysql 
Sql :: sql server reseed single table 
Sql :: ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 
Sql :: mysql create user with mysql_native_password 
Sql :: sql server reset identity 
Sql :: postgresql find biggest table 
Sql :: mysql list bigger table 
Sql :: mysql add user with all privileges 
Sql :: stop mysql 
Sql :: mysql_secure_installation 
Sql :: mysql how to reset primary key 
Sql :: SELECT list is not in GROUP BY clause 
Sql :: mysql list databases 
Sql :: sql add column 
Sql :: find largest table in mysql database 
Sql :: update password postgres user 
Sql :: sql add days to date 
Sql :: oracle list functions 
Sql :: how to remove characters from string in mysql 
Sql :: alter table delete column 
Sql :: sqlite3 now 
Sql :: oracle last character of string 
Sql :: how to show all users in mysql 
Sql :: postgres select from last 3 months 
Sql :: how to list function in psql 
Sql :: copy column data to another column sql with creating slugs 
Sql :: drop column if exists sql server 
Sql :: how much every mysql database record takes from diskspace 
Sql :: jooq convert using gbk 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =