Amrit Sarkar wrote: >> Kevin, >> >> You are getting NPE at: >> >> String type = rawContentType.split(";")[0]; //HERE - rawContentType is NULL >> >> // related code >> >> String rawContentType = conn.getContentType(); >> >> public String getContentType() { >> return getHeaderField("content-type"); >> } >> >> HttpURLConnection conn = (HttpURLConnection) u.openConnection(); >> >> Can you check at your webpage level headers are properly set and it >> has key "content-type".
Amrit, this is markserv, and I just used wget to prove you are correct, there is no Content-Type header. Thanks for the help! I'll see if I can hack markserv to add that, and try again. Kevin