Questions tagged [uribuilder]

82 questions
0
votes
2 answers

UriBuilder encoding issue with queryParam

var responseEntity = webClient .get() .uri( uriBuilder -> uriBuilder .path("myendpoint") .queryParam("email", email) …
Kartik Arora
  • 958
  • 1
  • 10
  • 17
0
votes
2 answers

How do i keep the path in Uri decoded?

I am trying to create a uri, but for some reason is the path being decoded everytime, causing problems with my browser trying to access the page the uri build? POC: using System; public class Program { public static void…
I am not Fat
  • 283
  • 11
  • 36
0
votes
1 answer

OpenApi generator generates client APIs with placeholder in the path get URISyntaxException

I am working on a Java Project with Maven, SpringBoot and OpenAPI. In the pom.xml, we added plugin of openapi-generator-maven-plugin version 5.2.1 In the openapi yaml file we have path like below as an…
Ran
  • 55
  • 1
  • 10
0
votes
0 answers

Old IP on uriBuilder after server IP change

We have a CompanyTokenValidation class with this code: return this.defaultWebClient.get() .uri(uriBuilder -> uriBuilder .path(tokenValidationUri) .build()) .header(HttpHeaders.AUTHORIZATION,…
Corporativo
  • 185
  • 1
  • 2
  • 11
0
votes
0 answers

How can you tell if a Twitter query is returning the correct data?

I am just starting to use the Twitter API (v2) in Java and it doesn't seem like I'm getting the correct response to a query on the recent search endpoint. In the code (modified from example code) below, I am using a query of "#" has:hashtags…
jmuth
  • 71
  • 4
0
votes
1 answer

how to use UriComponentsBuilder for replacing pathsegment

I have a url as below http://example.com/{id} I want to change it to http://example.com/12 I have coded as below url= "http://example.com/{id}"; UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(url); builder.pathSegment("{id}",…
Aniket
  • 310
  • 1
  • 4
  • 22
0
votes
1 answer

How to send multiple origins, each origin having its own multiple destinations, to Google Distance Matrix on the query-string

I am working with C# WebClient and the UriBuilder class, communicating with the Google Distance Matrix API. My program is sending comma-separated latitude,longitude pairs. Things are working properly with one origin and multiple destinations: the…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
0 answers

TYPO3 v. 10.4 URI Builder Produces Sometimes Faulty Language Links in the Cache

After clicking a while through the web site, the pages in the cache change suddenly to faulty pages. One part of the links then are written with a-tags that don't have a href attributes. The other part are proper links to the correct page but to…
Humble
  • 1
  • 2
0
votes
1 answer

UriFormatException: Invalid URI: The hostname could not be parsed. MVC API C#

I am trying to create my web application and I want to connect to API. I have base address in my Startup.cs file: services.AddHttpClient("API Client", client => { client.BaseAddress = new Uri("https://icanhazdadjoke.com/"); …
user13286210
0
votes
1 answer

Is there a way to know if my UriI.Builder is making the right URL

Not a problem just something i can't find anywhere in my app I build a URL using Uri.Builder All I want to know if there is a way to see the end result of the Uri.Builder because there I do call information from several EditText boxes as well as…
Ruben Meiring
  • 333
  • 2
  • 21
0
votes
1 answer

Is there a way to use the selection of a listview or spinner in uri..Builder/URL

I am Building an app to upload images to my company server, Now on our server there are categories(just folders) built into our file upload system The Thing is I am going to make a listview/spinner to select the category(generated from a json) I…
Ruben Meiring
  • 333
  • 2
  • 21
0
votes
1 answer

How to create Android Uri with hashtag in the center

I have the following Uri I want to construct. https://www.example.com/sub/#/action?firstparam=123456&secondparam=abcdef I use the Android Uri.Builder to construct the Uri Uri uri = new…
Wirling
  • 4,810
  • 3
  • 48
  • 78
0
votes
1 answer

uriBuilder.scheme not adding :// in the URL

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…
dev90
  • 7,187
  • 15
  • 80
  • 153
0
votes
0 answers

Print HTTPClient request parameters with sensitive data

I'm sending request using URIBuilder and I want to print the POST request by without or masking some of the parameters, code: uriBuilder.addParameter("p1", "v1"); .... uriBuilder.addParameter("p10", "v10"); HttpPost…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
0
votes
3 answers

how do I append path to my existing url through URI builder

def uri = new UriBuilder('http://someurl.com/api') I want to append /$contacId/PhoneNumber to the above uri . How Do I handle this case
deadpool
  • 61
  • 2
  • 9