Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

User-defined http header and com.oracle.httpclient.HttpRequestBuilder

Bruno LMay 30 2014 — edited May 30 2014

Hello,

In Java ME Embedded 8, I would like to send a HTTP request containing a user-defined identifier in the http header (X- header type), using the com.oracle.httpclient package.

       HttpClient client = clientBuilder.build();

        HttpRequestBuilder requestBuilder = client.build(http://my_uri);
        requestBuilder.setHeader(HttpHeader.ACCEPT, "text/plain");

Here, I would like to add a user-defined header value like :
      requestBuilder.setHeader("MyHeader", "myHeaderValue");

It seems that there are only pre-defined values available for headers in the com.oracle.httpclient.HttpHeader class.

Is there any way to add a user-defined header in the request ?

Thanks in advance.

Bruno

This post has been answered by Sergey.N-Oracle on May 30 2014
Jump to Answer

Comments

Mike Kutz

IIRC - There was no "12c XE".
11g XE would be under "Prior Release Archive" ... if it is still available (which it is not).
It looks like you can only get "Current" XE version and ONE version prior.

what problem are you trying to solve?

User_926KG

i want to link of 12c

Cătălin Mironeanu

There is no release of Oracle Database Express Edition (XE) 12c. Oracle planned to release XE after 12.2.0 release, but they didn't release that. After Oracle XE 11g, the next version of XE was Oracle XE 18c.

Cătălin Mironeanu

Oracle Database 10.2, 11.x, 12.x, and 18c are available as a media or FTP request for those customers who own a valid Oracle Database product license for any edition.
https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?id=1071023.1

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 27 2014
Added on May 30 2014
2 comments
1,532 views