You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

API call's in which comma in the URL request params are getting failed with response code 4

edited Oct 14, 2019 5:07AM in OCI - General

Content

Sample URL: https://objectstorage.us-ashburn-1.oraclecloud.com/n/namespace/b/bucket-XYZ?fields=approximateCount,approximateSize

We are using DefaultHttpClient to handle http connections & URLs are encoded using URLEncodedUtils.format() method.

After encoding:  https://objectstorage.us-ashburn-1.oraclecloud.com/n/namespace/b/bucket-XYZ?fields=approximateCount%2CapproximateSize

Why the calls are getting failed when encoded? I tried this in postman as well & the result is same.

Is this anything related to Oracle Cloud Server's not accepting the encoded values? Not sure. 

Any suggestions?

 

 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!