SMRTR ProgrammingNov 12, 2025Daily.dev

Were URLs a bad idea?

SMRTR summary

Java's original URL.openConnection() method was designed as a universal tool for fetching any type of URL, from web resources to FTP servers, reflecting 1990s design philosophy. However, this generic approach created security risks by potentially accepting dangerous URLs like mailto: or javascript:, forced lowest-common-denominator APIs, and introduced varied performance issues. Java 11's new HttpClient abandons this universality for HTTP-specific functionality, reflecting how most modern applications benefit from specialized URL handling rather than generic solutions.

SMRTR provides this summary for quick context. The original article belongs to Daily.dev.

Read the original article
SMRTR Programming

Get the next batch of curated summaries in your inbox.

This archive is built from SMRTR newsletter summaries. Subscribe for hand-picked stories without the extra noise.