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

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

Hi Bruno,
did you try HttpHeader myHeader = new HttpHeader("MyHeader");?
/Sergey

Similar Messages

  • How to add a user defined HTTP header field?

    Hi, everyone!
    I want to add a user defined HTTP header field to a HTTP
    response header.
    I use the following statements in testHeader.jsp
    response.addHeader("myheader", "123");
    response.sendRedirect("middleHeader.jsp");
    in middleHeader.jsp,
    out.print(request.getHeader("myheader"));
    But the output in middleHeader.jsp is null!
    How to add a user defined HTTP header field to a HTTP
    response header? Are there some sample codes?
    Cheers,
    George

    the send redirect actually creates a new request (through the client) and thus a new response
    thus the headers you set in the response are gone for the next request/response
    You can try servletDispatcher.forward

  • User defined HTTP headers

              Hi.
              Is there any way that I can add a user defined HTTP header when posting messages
              to a servlet?
              I tried the following --
              URL url = new URL("http://localhost:7001/ebXML/receiver");
              HttpURLConnection urlc = (HttpURLConnection)url.openConnection();
              urlc.setRequestMethod("POST");
              urlc.setDoOutput(true);
              FileInputStream in = new FileInputStream("ebxml.xml");
              byte[] buf = new byte[8192];
              buflen = in.read(buf);
              System.out.println("len="+buflen);
              urlc.setRequestProperty("Content-length", (new Integer(buflen)).toString());
              urlc.setRequestProperty("Content-type",
                             "multipart/related; type=text/xml; boundary=\"BEA-EBXML-Boundary\"; version=1.0");
              urlc.setRequestProperty("SOAPAction", "ebXML");
              At the receiving side, the servlet uses
              HttpServletRequest.getHeaderNames() to get all the headers.
              The Content-type and the Content-length headers are shown up properly; however
              the "SOAPAction" header is missing.
              I tried to put "X-" in front of "SOAPAction". Then, it got through. It seems to
              me that our Servlet Container has filtered out user defined headers if they are
              not started with "X-".
              How can I work around this problem? The ebXML TRP spec specified that the "SOAPAction"
              header must be in the HTTP header and I can not change the name to be "X-SOAPAction".
              

    Weird. I use 6.1sp1 and this works as expected. Here is a small test
              (app does pretty much the same):
              test.jsp:
              <%
              Enumeration e = request.getHeaderNames();
              while(e.hasMoreElements()) {
              String name= (String)e.nextElement();
              out.println(name + " = " + request.getHeader(name));
              %>
              Test.java:
              import java.io.*;
              import java.net.*;
              public class Test {
              public static void main(String[] args) {
              try {
              URL url = new URL("http://localhost:7001/test.jsp");
              HttpURLConnection conn = (HttpURLConnection)url.openConnection();
              conn.setRequestMethod("POST");
              conn.setDoOutput(true);
              conn.setRequestProperty("Content-type", "some/xml");
              conn.setRequestProperty("SOAPAction", "foo:bar");
              OutputStream out = conn.getOutputStream();
              byte[] data = "Hello, World!".getBytes();
              out.write(data);
              out.close();
              BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
              String line;
              while((line = in.readLine()) != null) {
              System.out.println(line);
              } catch(Throwable oops) {
              oops.printStackTrace();
              # java Test
              Content-type = some/xml
              SOAPAction = foo:bar
              User-Agent = Java1.3.1
              Host = localhost:7001
              Accept = text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
              Connection = keep-alive
              Content-length = 13
              > Dimitri Rakitine <[email protected]> wrote:
              >>Hrm. Unless you use some internal WebLogic version this should
              >>work (And it does work as expected - using both 5.1sp10 and 6.1sp1 -
              >>
              >>SoapAction gets to the servlet just fine).
              >>
              > I do use WLS 6.1 sp1 release version. I also find out another application using
              > java mail to post a request on the same servlet can have any user defined header
              > in the HTTP header.
              > So, I guess the problem is at the sending side. Have you tried to use the same
              > mechanism (HttpURLConnection) I was using to send the HTTP request?
              > Thanks!
              > Yuhua
              >>Yuhua <[email protected]> wrote:
              >>
              >>> Hi.
              >>
              >>> Is there any way that I can add a user defined HTTP header when posting
              >>messages
              >>> to a servlet?
              >>
              >>> I tried the following --
              >>
              >>> URL url = new URL("http://localhost:7001/ebXML/receiver");
              >>> HttpURLConnection urlc = (HttpURLConnection)url.openConnection();
              >>> urlc.setRequestMethod("POST");
              >>> urlc.setDoOutput(true);
              >>
              >>> FileInputStream in = new FileInputStream("ebxml.xml");
              >>> byte[] buf = new byte[8192];
              >>> buflen = in.read(buf);
              >>> System.out.println("len="+buflen);
              >>
              >>> urlc.setRequestProperty("Content-length", (new Integer(buflen)).toString());
              >>> urlc.setRequestProperty("Content-type",
              >>>                "multipart/related; type=text/xml; boundary=\"BEA-EBXML-Boundary\";
              >>version=1.0");
              >>> urlc.setRequestProperty("SOAPAction", "ebXML");
              >>
              >>> ;;;;;;;;;;;;
              >>> At the receiving side, the servlet uses
              >>> HttpServletRequest.getHeaderNames() to get all the headers.
              >>> The Content-type and the Content-length headers are shown up properly;
              >>however
              >>> the "SOAPAction" header is missing.
              >>
              >>> I tried to put "X-" in front of "SOAPAction". Then, it got through.
              >>It seems to
              >>> me that our Servlet Container has filtered out user defined headers
              >>if they are
              >>> not started with "X-".
              >>
              >>> How can I work around this problem? The ebXML TRP spec specified that
              >>the "SOAPAction"
              >>> header must be in the HTTP header and I can not change the name to
              >>be "X-SOAPAction".
              >>
              >>
              >>
              >>
              >>--
              >>Dimitri
              Dimitri
              

  • Cannot logon user defined in header variable!

    Dear Guru's
    I'm seeing this this error when I type the URL. "Cannot logon user defined in header variable!"
    I have stopped and sterted the portal.
    I could not find the authschemes.xml (if this is related)
    Thanks,
    EP6 SP2
    Naren

    Hi ,
    Please explain what exactly you want to do ..If you want to use  Header Variables for User Authentication  go through this links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/5ddc40132a8531e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/5ddc40132a8531e10000000a1550b0/frameset.htm
    Thanks n Regards
    Santosh
    Reward if helpful !!!

  • No "Remote-User" in HTTP header when HTTP request gets to WLS

    Hello Exprers,
    I have a customer, using 10.3.3 on Linux machine. Web server as Apache.
    He wants Remote-User in HTTP header, he used to get it when he used Tomcat. But when he transffered to Apache and 10.3.3, he is not getting the Remote-User in header, instead he is getting proxy-remote-user.
    He wants the Remote-user in HTTP header.
    Any clue, on why he is not getting it.

    Hi,
    We are facing error while doing openConnection
    When I tried with simple java file it worked as shown below
    import java.io.*;
    import javax.net.ssl.HttpsURLConnection;
    public class test
    public static void main(String[] args) throws Exception
    String httpsURL = "https://rcfe.aspac.citicorp.com:40054/servlet/Verify";
    URL myurl = new URL(httpsURL);
    HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
    InputStream ins = con.getInputStream();
    InputStreamReader isr = new InputStreamReader(ins);
    BufferedReader in = new BufferedReader(isr);
    if (con!=null)
    System.out.println("con="+con);
    System.out.println(ins);
    Output*
    [rcrrgbg2@kauh0079:/rcrmap2/weblogic/bea/ORA_PFRD/forms/j2ee] java test
    con=com.ibm.net.ssl.www2.protocol.https.e:https://rcfe.aspac.citicorp.com:40054/servlet/Verify
    sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@5f6c5f6c
    However when I tried with below program I am able to write upto Web CL URL but after that no log is written when it tries to do openConnection() for this line csConn=(HttpsURLConnection)new URL(webclURL).openConnection(); in the below code
    Some part of the code:_
    =======================================================================
    import java.io.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.util.Hashtable;
    import java.io.File;
    import java.io.FileInputStream;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.net.ssl.HttpsURLConnection;
    import java.net.URL;
    public class CRMSLogin extends HttpServlet
    private static final long serialVersionUID=-6294676216324813290L;
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    String iniFile=request.getParameter("CRMS_INI_FILE_PATH");
    String sessionId=request.getParameter("SessionId");
    String applId=request.getParameter("apl_id");
    String userId=request.getParameter("userId");
    String clientIp=request.getRemoteAddr();
    Properties iniProp=this.getProperties(iniFile);
    String crmsAppServerContext=iniProp.getProperty("CRMS_APP_SERVER_CONTEXT");
    String appModule=iniProp.getProperty("CRMS_MODULE");
    String webclURL=iniProp.getProperty("WEBCL_URL");
    // HttpsURLConnection csConn=null;
    String crmsFormsTerm=null;
    crmsFormsTerm=getEntitlements(iniFile.trim(),sessionId,applId.trim(),clientIp.trim(),webclURL.trim());
    String baseContent=this.getBaseContent(iniProp);
    ServletOutputStream out=response.getOutputStream();
    baseContent=baseContent.replaceAll("<!APP_TITLE!>","Credit Risk Management System");
    baseContent=baseContent.replaceAll("<!APP_CONTEXT!>",crmsAppServerContext);
    baseContent=baseContent.replaceAll("<!APP_MODULE!>",appModule);
    baseContent=baseContent.replaceAll("<!APP_TRACE!>",crmsFormsTerm.replaceAll(" ", ""));
    baseContent=baseContent.replaceAll("<!USER_ID!>",userId);
    baseContent=baseContent.replaceAll("<!SESSION_ID!>",sessionId);
    baseContent=baseContent.replaceAll("<!APPL_ID!>",applId.trim());
    baseContent=baseContent.replaceAll("<!CLIENT_IP!>",clientIp.trim());
    baseContent=baseContent.replaceAll("<!INI_FILE!>",iniFile.trim());
    out.println(baseContent);
    out.flush();
    out.close();
    private synchronized Properties getProperties(String inifile)
    Properties iniProp=new Properties();
    FileInputStream iniFileStream=null;
    try
    iniFileStream=new FileInputStream(inifile);
    iniProp.load(iniFileStream);
    iniFileStream.close();
    catch(Exception e)
    finally
    try
    if(iniFileStream!=null)
    iniFileStream.close();
    catch(Exception e)
    return iniProp;
    public static synchronized String getEntitlements(String inifile,String sessionId,String applId,String clientIp,String webclURL)
         HttpsURLConnection csConn=null;
         OutputStreamWriter requestStream=null;
         BufferedReader responseStream=null;
         StringBuffer responseData=new StringBuffer();
         String csReturnString=null;
         //String webclURL=null;
         BufferedWriter traceLog=null;
         int csCount=6;
         Properties iniProp=new Properties();
         String traceFile=null;
         String entitlementData=null;
         try
         readIniProperties(inifile,iniProp);
         traceFile=getTraceFile(iniProp);
         traceLog=new BufferedWriter(new FileWriter(traceFile,true));
         if(traceFile!=null)
         traceLog.write("###########################");
         traceLog.write("P A R A M E T E R S");
         traceLog.write("###########################");
         traceLog.newLine();
         traceLog.write("INI_FILE:"+inifile);
         traceLog.newLine();
         traceLog.write("SESSION_ID:"+sessionId);
         traceLog.newLine();
         traceLog.write("APPL_ID:"+applId);
         traceLog.newLine();
         traceLog.write("CLIENT_IP:"+clientIp);
         traceLog.newLine();
         traceLog.write("count:"+csCount);
         traceLog.newLine();
         traceLog.write("###########################");
         traceLog.newLine();
         //webclURL=getWebclURL(traceLog,iniProp);
         if(webclURL!=null)
         traceLog.write("Web CL URL:"+webclURL);
              traceLog.newLine();
         csConn=(HttpsURLConnection)new URL(webclURL).openConnection();     
    traceLog.write("Open Connection - Completed!");
         traceLog.newLine();
         csConn.setRequestMethod("POST");
         csConn.setDoInput(true);
         csConn.setDoOutput(true);
         requestStream=new OutputStreamWriter(csConn.getOutputStream());
         traceLog.write("Open Request Stream - Completed!");
         traceLog.newLine();
         requestStream.write("SessionId="+sessionId+"&ClientIP="+clientIp+"&apl_id="+applId+"&count="+csCount);
         requestStream.flush();
         requestStream.close();
         traceLog.write("Write Params to Request Stream - Completed!");
         traceLog.newLine();
         responseStream=new BufferedReader(new InputStreamReader(csConn.getInputStream()));
         traceLog.write("Open Response Stream - Completed!");
         traceLog.newLine();
         while((csReturnString=responseStream.readLine())!=null)
         responseData.append(csReturnString);
         traceLog.write("Response Stream Reading - Completed!");
         traceLog.newLine();
         responseStream.close();
         csConn.disconnect();
         entitlementData=getEntitlementData(traceLog,responseData.toString(),iniProp);
         traceLog.write("responseData::"+responseData);
         traceLog.newLine();
         traceLog.newLine();
         traceLog.write("entitlementData::"+entitlementData);
         traceLog.newLine();
         traceLog.flush();
         traceLog.close();
         catch(Exception e)
         e.printStackTrace();
         finally
         try
         if(requestStream!=null)
         requestStream.close();
    =======================================================================
    output_
    ###########################P A R A M E T E R S###########################
    INI_FILE:/rcrmap1/rcrrgbg2/crms.ini
    SESSION_ID:%2526%253ASIGNED_TICKET%253D%2526PROVIDER_TICKET%253D002c6e4cH0tZy2Gj4JBCOiSL7uSlKisfsqgwP9KoRRn7e%252BY%253D%253AKRSERVER0006%252BA9A52AAE%252B4D1DC7AA%252B14400
    APPL_ID:RCRMKR
    CLIENT_IP:169.165.42.174
    count:6
    Web CL URL:https://rcfe.aspac.citicorp.com:40054/servlet/Verify
    Please help to guide us.
    Regards,
    Harish

  • How do you create a user defined functions  UDF and passing a value like a ID to GEt a Value.

    How do you create a user defined functions UDF and passing a
    value like a ID to GEt a Value.
    using a query.
    are there example.
    Thanks

    tons of examples at cflib.org - good place to start, even
    though many
    udfs there are a bit outdated in their code...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Parameters from HTTP header and HTTP parameter

    All,
    I am very new to APEX. Our new application needs to get two values, one from a HTTP header and the second from a HTTP parameter. I do not know how to do this. Is there an existing function like GET_HTTP_HEADER.val?
    Thanks for any help.
    Fred

    user7183753 wrote:
    Andy,
    Thanks for the quick reply. The OWA_UTIL will give me static information.owa_util.get_cgi_env should be able to get any http header information that you require.
    You can modify the dads.conf file to allow non-standard HTTP headers to be passed through, you add a PlsqlCGIEnvironmentList entry e.g.
    PlsqlCGIEnvironmentList AuthorizedUser
    If your users access an external URL to be authenticated and then that external system forwards to you with the new header showing the authenticated user name, you could pick up that 'AuthorizedUser' header as part of your own authentication mechanism.

  • User-defined value help and dispatcher configuration

    HI all.
    This is adrian. I gots my hands in PCUI. Facing a prob. Hope someone can help.
    The User-defined value help and dispatcher iViews in CRM-PCUI are no longer displayed after I installed CRM 4.0 Support Package 03. I also get a portal error when I execute the link.
    Did some one work with such a prob.
    Acosta.

    Adrian,
    I did work with a lil of PCUI some time back.
    Well the upfront easy solution is upgrade your pack level to one less than the latest.
    Julius

  • OSB question : passing a user defined transport header to a proxy service

    Hi All,
    I have a proxy service that calls another proxy service. The protocol for the "called proxy service" is set to local. The calling proxy service has a "transport header" action to add a user defined header to the outbound request.
    I log the outbound request in the calling proxy service before publishing/calling the other proxy service. It does have header set as expected. But the called proxy service does not get this header.
    As a note in the "transport" tab "get all headers" is set to true.
    Please suggest
    Here is the outbound xml gets printed just before calling the proxy service
    <con:endpoint name="BusinessService$userProvisioning$businessService$HttpMessageSender" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:uri>http://localhost:8064/ProvisioningService/</con:uri>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <tran:user-header name="JMS_BEA_RedeliveryLimit" value="1"/>
    <tran:user-header name="JMSDeliveryMode" value="2"/>
    <tran:user-header name="JMSExpiration" value="0"/>
    <tran:user-header name="JMSMessageID" value="ID:&lt;914937.1294164899050.0>"/>
    <tran:user-header name="JMSPriority" value="4"/>
    <tran:user-header name="JMSRedelivered" value="false"/>
    <tran:user-header name="JMSTimestamp" value="1294164899050"/>
    <tran:user-header name="JMSXDeliveryCount" value="1"/>
    *<tran:user-header name="reResolvedAddress" value="http://LPF004689:8080/axis2/services/provisioning/"/>*
    *<tran:user-header name="reResolvedRegion" value="MB"/>*
    <http:Content-Type>application/soap+xml; charset=utf-8</http:Content-Type>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>>
    And here is the inbound xml getting printed inside the called proxy service
    inbound="<con:endpoint name="ProxyService$userProvisioning$proxyService$LocalSoapListener" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="loc:LocalRequestMetaData" xmlns:loc="http://www.bea.com/wli/sb/transports/local" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="loc:LocalRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports"/>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="loc:LocalResponseMetaData" xmlns:loc="http://www.bea.com/wli/sb/transports/local" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="loc:LocalResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports"/>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username>&lt;anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>"

    Hi,
    We are using OSB 11g for sending message to external client.
    we are setting Headers "JMSType" in set Transport Header. but Client is not able to recieve the JMSType header at there side.
    we have read many forums for the same and turned on
    Pass all Headers through Pipeline
    Get All Headers
    then I put one publish action and keep my "Set Transport Header" inside that. still client is not able to find the same
    In out outbound request we can see the header as following.
    $outbound = <con:endpoint name="BusinessService$Notification$BusinessService$external$BUSINESSSERVICE:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:uri></con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>exactly-once</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <tran:user-header name="JMSType" value="XXXXXXX">
    <http:Content-Type>text/plain; charset=utf-8</http:Content-Type>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <tran:user-header name="content-description" value="SOAP"/>
    <tran:user-header name="content-disposition" value="attachment;filename=&quot;[email protected]&quot;"/>
    <tran:user-header name="content-id" value="&lt;[email protected]>"/>
    <http:Cache-Control>proxy-revalidate</http:Cache-Control>
    <http:Connection>Keep-Alive</http:Connection>
    <http:Content-Length>112</http:Content-Length>
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:Date>Sun, 02 Sep 2012 04:06:43 GMT</http:Date>
    <http:Server>XXXXXXXXXerver>
    <http:Set-Cookie><![CDATA[<cookie-values xmlns="http://www.bea.com/wli/sb/transports/http">
    <value>JSESSIONID=m2RvGs2_Lvk_AZgyVJIv_e2-vSiFOQFi_mIA_SAPULGAKriCp_hbBD8uC0e8pEXt; Version=1; Path=/</value>
    <value>saplb_*=(spspiq_PIQ_00)6487650; Version=1; Path=/</value>
    </cookie-values>]]></http:Set-Cookie>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    <tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">OK</tran:response-message>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    <http:http-response-code>200</http:http-response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>

  • HTTP header and Filter: problem

    Hi,
    Let's suppose I need to check HTTP header values for some reason. I created a filter to analyze request information before passing it to servlet.
    Anyway filter's method doFilter() takes a ServletRequest as a parameter, not HttpServletRequest, therefore I can't use HttpServletRequestWrapper and its method getHeaders(). ServletRequestWrapper does not have such a method. Casting from ServletRequest to HttpServletRequest won't work - Weblogic does not allow this.
    Anyway I need to extract headers information for the request and I know for sure it is an HTTP request, of course.
    Does anyone here know how can I extract header information in this case?

    Anyway filter's method doFilter() takes a
    ServletRequest as a parameter, not
    HttpServletRequest, therefore I can't use
    HttpServletRequestWrapper and its method
    getHeaders().However you are actually getting an HttpServletRequest object as your actual parameter, so just cast it to HttpServletRequest and do what you need to do.

  • Editing HTTP header and body request and sending it...

    Hi there!
    I need to create a new Packet and send it to a server, its a HTTP protocol packet and all i need to do is insert the Header and Body information after sending it to the server..
    does anyone know an example, link, book or anything about how to do it in j2se?
    Thanks very much for any help, and sorry about my english

    Anyway filter's method doFilter() takes a
    ServletRequest as a parameter, not
    HttpServletRequest, therefore I can't use
    HttpServletRequestWrapper and its method
    getHeaders().However you are actually getting an HttpServletRequest object as your actual parameter, so just cast it to HttpServletRequest and do what you need to do.

  • Help! When users save web forms and come back to submit they get an error message and form is lost

    I have a feb form that has a 28 save limit.  When users save the form and return to submitt them they get a error message that says the form has expired or has been submitted.  The form is open and it was not submitted.  Any thoughts.
    Form deadline is tomorrow and people are getting angry when I tell them to recreate the form.

    Hi;
    Can you forward me any of the emails from your users with their saved link that is not working and we can look into it?
    Send to [email protected]
    Thanks,
    Josh

  • User defined types,refnums,and program autoupdating

    Hello all the Masters,
       I am working now on a large program.And tried to do the next thing: to put  controls and indicators at the cluster,
    make it "strict type definition",and pass a reference to this cluster to the sub vi's.The main point is,that the sub vi's update
    the values of this cluster too.Here I come to the point : I wanted that if would be easy to add/remove controls to/from the cluster.
       The solution that I "wired" is attached.It uses  .xml file for indication,if the datatype was updated,and if yes,promts user to choose
    which variable he wants to update.
      I would like to know your opinion about this "trick".
     Thanks,
    Michael .
    LV 8.2 at Windows & Linux
    Attachments:
    update_averaging_index.zip ‏49 KB

    Sorry about been not clear: no indicators,just controls at cluster.
    The main goal was to do the whole program easy to make changes,such as changing datatypes.Now,the vi's that posted performs a check,
    if there were a change at the datatype,if yes,the vi promts the programmer what variables he wants to pass now to be updated and saves the selection.
          I am shure that I am not the first one who thinked about it,just wanted to hear opnion of people who more experienced than me.
      Thanks for reply.
    Message Edited by mishklyar on 01-14-2008 03:10 PM
    LV 8.2 at Windows & Linux

  • User defined column heading

    Hello Every1,
    The following is a peice of code produces a report. At the moment the heading of the column is GBCCCL15/16_CSAHEPA because it has been hard coded that way. However what i would like instead, is the heading of the column to be what ever the user selects. What i mean by this is, what ever the user chooses to search in the text fields will then be displayed as the column heading when the report is exicuted.
    select schema_name,
    max(GBCCCL1516_CSAHEPA) as "GBCCCL15/16_CSAHEPA"
    from     
         select     schema_name, created_time,
         case when
              server_name||'_'||db_name='GBCCCL15/16_CSAHEPA'
              then DB_PATCH_NUMBER||'v'||VERSION_NUMBER else null end GBCCCL1516_CSAHEPA
    from      version_control
    group by schema_name
    order by SCHEMA_NAME
    Does anyone know how to get this done?
    Thanks in advance.

    Hi,
    Headings can be created dynamically. Change the headings type to PL/SQL. You then see a "Function returning colon delimited headings" setting - enter in something like:
    DECLARE
    v_headings VARCHAR2(2000);
    BEGIN
      v_headings := '';
      SELECT USER_HEADING INTO v_HEADINGS FROM TABLEX;
      RETURN v_headings;
    END;The string returned must be a colon-delimited string with one value for each column. eg:
    COL1:COL2:COL3Andy

  • The last 400  songs will not upload to iTunes Match and instead I get the following error:  iTunes has encountered a user-defined break point and shuts down.  How to fix?

    What gives with this message.  Any Apple reps want to tackle this.  BTW I am uploading from Windows 7 Ultimate and meet all the mininum requirements as prescribed by Apple.

    Enable the "iCloud Status" column in the iTunes Browser by pulling down View > View Options, select 'iCloud Status" and click OK. Sort on that column by clicking on it and find all the tracks that are "waiting." These you can delete from the iTunes library and the cloud, then update iTunes Match. Once you've done this youc an start adding the songs back to the iTunes library a few at a time.

Maybe you are looking for