getUrlContent

fun getUrlContent(theUrl: String, userAgent: String? = "Mozilla/5.0"): String

Gets the contents of a url as a string.

Return

the string stored in the url content

Parameters

theUrl

the url to get the data from

userAgent

the user agent to use in the connection

Sources

Link copied to clipboard