Questions tagged [uribuilder]

82 questions
0
votes
1 answer

C# Keep Semicolon in URI

I need to keep the semicolon in the URI (DO not escape it). The final url will look something like this: http://dontclick.com?Product=CON&Properties=color;price;location I've been messing around with UriBuilder but cannot seem to keep the semicolon.…
bagofmilk
  • 1,492
  • 8
  • 34
  • 69
0
votes
1 answer

Building my URI using UriBuilder has added a weird charecters %u200b to one of the parameters

I am working on an asp.net MVC web application. and i am building a URI to be sent to a web api. but the UriBuilder is adding these characters %u200b to the beginning of a parameter. here is my method:- public string Add(string title, string…
John John
  • 1
  • 72
  • 238
  • 501
0
votes
0 answers

Javax UriBuilder error

I have a Java application deployed on Jetty server, and I am using Jersey. Once I try to open the URL, I recieve an HTTP 500 error with the following message. I have read other posts regarding this error, saying that the problem is caused by…
Tiara
  • 59
  • 6
0
votes
1 answer

Groovy string changes when used in URI addQueryParam

The following is part of a script to make a Rest query using HTTPbuilder. The aim is to make successive queries and increment the day each time. The value of the StartDate and EndDate string change when they are used in the uri.addQueryParam and…
Mondo
  • 163
  • 13
0
votes
2 answers

javax UriBuilder doesn't escape '}' correctly

javax.ws.rs.core.UriBuilder is not escaping } correctly: import javax.ws.rs.core.UriBuilder; public void test() { final UriBuilder builder = UriBuilder.fromUri("http://host"); builder.path("dir}one"); l.info(builder.toString()); } Will…
Roland
  • 7,525
  • 13
  • 61
  • 124
0
votes
1 answer

How can i fix URI build error

In android a have a URL like http://api.openweathermap.org/data/2.5/forecast/daily?q=khulna&mode=json&units=metric&cnt=7&appid=02b7; So I use Uri builder final String FORECAST_BASE_URL= …
Shudipto Trafder
  • 1,932
  • 1
  • 14
  • 27
0
votes
2 answers

Java Use URI builder?

I have bellow url : http://www.example.com/api/Video/GetListMusicRelated/0/0/null/105358/0/0/10/null/null This section is Fixed and unchangeable: http://www.example.com/api/Video/GetListMusicRelated/ I set parameter to this url like bellow : …
user4813855
0
votes
1 answer

Jersey injection

Is there a way to change the implementation of UriInfo that's injected into all the resources and classes? I want to keep most of the implementation the same, but just change one part of it (the part that provides a UriBuilder - I want to provide a…
0
votes
1 answer

Nunit: Special character in uri

I have a weird problem. var dummyUri = new UriBuilder("http", "localhost", 8585, "Some[Name"); If I put this code block to console app , absolute uri will be displayed like following. AbsoluteUri = "http://localhost:8585/Some[Name" If I put this…
vercin
  • 210
  • 4
  • 12
0
votes
1 answer

HttpClient deprecated, and URIBuilder not coming up?

@Override protected Void doInBackground(Void... params) { ArrayList dataToSend = new ArrayList<>(); dataToSend.add(new Pair("name", user.name)); dataToSend.add(new Pair("username", user.username)); …
0
votes
0 answers

IIS virtualpath and UriBuilder

I'm having multiple applications hosted under one site in IIS. Each application have unique VirtualPath, so i have something like this: localhost/Site1 localhost/Site2 ... locahost/SiteN What I'm trying to do - to build valid URL using out of the…
0
votes
2 answers

URL not being properly build in android

I am using URI Builder class to build this url http://image.tmdb.org/t/p/w185//qjn3fzCAHGfl0CzeUlFbjrsmu4c.jpg Here is my code: `final String TMDB_results = "results"; final String TMDB_title = "original_title"; final String…
gautamprajapati
  • 2,055
  • 5
  • 16
  • 31
0
votes
1 answer

deploy war tomcat get threw exception

I worked at Tomcat7 , try to deploy war to another device which tomcat is 8.0 I got the exception from UriBuilder... I have no idea how to solve it. org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [Jersey…
user5121761
  • 67
  • 1
  • 8
0
votes
1 answer

How to update my ImageAdapter in post execute method

I have an ImageAdapter class for GridView which is filled by local images.I want to update it by the movie databse api. here is my ImageAdapter class - package jindal5.mayank.popular_movies_14ce10032_gsc; import android.content.Context; import…
0
votes
2 answers

Extract parameters from URL

I have problems with the character +(and maybe others) at the URIBuilder is suppose to get a decoded url but when I extract the query the + is replaced String decodedUrl = "www.foo.com?sign=AZrhQaTRSiys5GZtlwZ+H3qUyIY=&more=boo"; URIBuilder builder…
xedo
  • 1,117
  • 3
  • 18
  • 34