Questions tagged [uribuilder]
82 questions
0
votes
1 answer
how to get absoluteURIbuilder to return newly created resource in loaction header in JAX-RS?
Consider the following example:
create new user
POST request for this url : www.example.com/accounts/checking/users
GET user detail
GET request for this url : www.example.com/accounts/checking/user/1
return resource for user with id 1.
Now my…

brain storm
- 30,124
- 69
- 225
- 393
0
votes
1 answer
URI Builder - building a query string?
Im trying to build a String/URI to access an API. The API takes in a sentence param. Right now my attempt at doing this is the following:
//params[0] is a String such as "You will be a hero"
Uri.Builder builder = new…

Brent Aureli
- 463
- 6
- 21
0
votes
0 answers
Is executing an httpclient that contains both a StringEntity and appended query parameters disallowed?
I don't know if executing an httpclient that contains both a StringEntity and appended query parameters is disallowed or if there is something fundamentally wrong with this code/my assumption about what it's doing?
That being so, this is what I…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
UriBuilder namespace
Before I ask my question I must say that I read MSDN website before and used Using System; as namespace for class.
When I use the class UriBuilder with Using System in my code,it is dis-active. What is the namespace of this class?
I am using visual…

user3403967
- 53
- 1
- 6
0
votes
1 answer
decode %3F to '?' in URL using UriBuilder
I am building a url and using it to point to one of my controllers to do some work. I got this error when I passed the url having %3F isntead of ?
A potentially dangerous Request.Path value was detected from the client (?).
The Url generated by…

laitha0
- 4,148
- 11
- 33
- 49
0
votes
1 answer
Java 1.6 and URIBuilder
There is a clean way to build this examples with Apache URIBuilder?
"http://host/path", passing "path2" -> "http://host/path/path2"
"http://host/path", passing "/path2" -> "http://host/path2"
"resolve" method is not working, it always…

Phaedra
- 237
- 1
- 3
- 11
-3
votes
2 answers
encode special character in URL
{URL}/text=Congratulations%21+You+are+eligible+for+.%0A
%0A = New line encoded character
I am passing encoded new line syntax in parameter. But the problem is that when I am building the above URL then its again encoded the % as %25
so above URL…

Shiladittya Chakraborty
- 4,270
- 8
- 45
- 94