This is my code:
val urlConnection: HttpURLConnection = url.openConnection() as HttpURLConnection var nameOnly = attachment.commonName.spli