ayodele
val dnb = "<https://www.dnb.com/apps/dnb/servlets/CompanySearchServlet>" val res = client.get(dnb) { url { parameters.append("pageNumber", "1") parameters.append("pageSize", "5") parameters.append("searchTerm", "NQB8 Limited") parameters.append( "token", "eyJwNCI6IklvTEh3WVN6SkZTaDJLUG0zYU41c1NacnZLUFBNUE1MTlBSTE1RIiwicDIiOjksInAzIjozOCwicDEiOjE2NjM2MzI0NjgyMzd9" ) } } println(res)
val client: HttpClient by lazy { HttpClient(CIO){ install(ContentNegotiation){ json(Json { prettyPrint = true isLenient = true ignoreUnknownKeys = true }) } install(Logging) followRedirects = true expectSuccess = false engine { requestTimeout = 30000 } } }
Aleksei Tirman [JB]
OkHttp
A modern programming language that makes developers happier.