0

I am using Uri Builder to generate URL like following.

uriBuilder.scheme("https")
 .appendPath("test")
 .appendQueryParameter("code", "S256")

The output is https:/test?code=S256 .

I need following output https://test?code=S256

If i add uriBuilder.scheme("https://") then it add :// with :/

Prags
  • 2,457
  • 2
  • 21
  • 38
dev90
  • 7,187
  • 15
  • 80
  • 153

1 Answers1

2

Try

uriBuilder.scheme("https")
.authority("test")
.appendQueryParameter("code", "S256")
Kévin Giacomino
  • 487
  • 4
  • 11