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.

Similar Messages

  • SOAP HTTP header in SOAP request

    Hi,
    How to add the soap HTTP additional header in the SOAP request?
    I want to add the headers not through coding. I want to add it manually.
    I can able to add the HTTP headers through SOAPUI. But i need to add the same inside the request.
    Could someone please help me?

    I am sending the SOAP request through SoapUI.
    Here is the sample request which i have used.
    <?xml version="1.0"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://requisition.api.newscale.com">
    <soapenv:Header>
    <req:AuthenticationToken>
    <req:Username>***</req:Username>
    <req:Password>***</req:Password>
    </req:AuthenticationToken>
    </soapenv:Header>
    <soapenv:Body>
    <req:getRequisitionStatus>
    <req:loginUserName>***</req:loginUserName>
    <req:requisitionId>123456</req:requisitionId>
    </req:getRequisitionStatus>
    </soapenv:Body>
    </soapenv:Envelope>
    Here i have to add the additional HTTP header with this request.

  • Ifference between change request and release request and transport request

    what is the difference between change request and release request and transport request and customization  request?

    Please refer to this link :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/38e1824eb711d182bf0000e829fbfe/frameset.htm
    Regards,
    Praveen
    Pl reward if helpful

  • How to retrieve SOAP Original Header from request and response

    Hi,
    Does anyone know how to retrieve SOAP original header from SOAP request and response? I surfed but I'm able to see only the retrieval of SOAP custom headers via BPM mediator. Can anyone please help me regarding this? Also Please tell me how to check the headers in the Enterprise Manager.

    HI Chandra,
    Thanks for your suggestions.
    But i think in my case we do not want to get the complete list. We still want to get only 100 items initially and then if the user would scroll down he/she would see more items. But we already need to know the total number of items for the purpose of showing a message to the user. For e.g. Total issues (515),  but the table would initially show only 100 and then another 100 after scroll. So setting the size litmit to max would not help.
    And to be able to use the $count you mentioned, we have to still make another oData service call which we do not want.
    But as i mentioned there is already a property named "__count" in the response of the bindItems() method call and i see that it has correct count but not sure how to retrieve it inside the controller. Thanks.
    Regards,
    Ashish

  • Difference between workbench request and customizing request in transport

    Hi Experts,
    I am new to SAP BI7 work. i am having basic doubt in Transort request creations
    ususally we create  the requests to transport the objects from Development  system to further systems.
    can anyone please clarify me,  what is the main defference between the Workbench request and Customizing request.
    Thanks and Regards
    Mrudula

    Hi ,
           The Transport Organiser maintains Change Requests.These requests record the changes made to the repository and customizing objects.Based on that objects changed they are
    1)WorkBench Request & 2) Customizing Request.
    Workbench Requests are those that involve changes to cross-client Customising and Repository Objects. The objects are independent of the client.Hence the requests are used for transferring and transporting changed Repository objects and changed system settings from cross-client tables.
    Customizing Requests involve changes recorded to client-specific Customizing objects .These client specific requests are used for copying and transporting changed system settings from client-specific tables.
    Refer this links http://www.allinterview.com/showanswers/57910.html
    customising and workbench request
    Difference between Customizing request and Workbench request
    and many more threads available on this.
    Regards,
    Rahul.

  • My daughter's ipod is on my itunes account. Now we're getting each others messages and facetime requests. How do I change that?

    My daughters iPod is on my iTunes account. Now we're "linked" so that I get most of her text messages and facetime requests and she gets some of my text messages. Is there any way to make sure this doesn't happen? It's very annoying!!

    Welcome to the Apple Community gr8leakes.
    You could simply ensure that only the numbers and addresses you wish to use on each device are checked at Settings > Messages > Send & Receive. However this isn’t an ideal solution because the other person can always change these settings from their device and have some fun with you and your contacts.
    You’d be far better getting them to delete your account from their device and have them create one of their own. If you are sharing an ID for some other service such as iTunes, you can continue to do so, you only need change the ID for messages.

  • Purpose of IS SUPPLIED and IS REQUESTED

    Hi,
    What is the purpose of "IS SUPPLIED" and "IS REQUESTED" and in which cases we do these ABAP statements.
    Thanks,
    Sandeep

    Hi,
    IS SUPPLIED is used to check if an optional importing parameter e.g. of a method is supplied. Usually this condition is used to default the value if it is not supplied and the default is too complex to hard define it in the parameter definition. Example:
    IF iv_from_dt IS SUPPLIED.
      lv_from = iv_from_dt.
    ELSE.
      " if no start is supplied we take the first of this year as default
      lv_from(4) = sy-datum(4).
      lv_from+4(4) = '0101'.
    ENDIF.
    IS REQUESTED is used to check if a certain exporting parameter has been requested (is further processed) by the caller e.g. of the method. Often function modules or methods have more than one exporting parameter e.g. one structure with data / keys for calculations and one with data / keys and the corresponding texts for printing in a report. If the caller only needs the structure with the data as it does not need any text information the called function module can skip getting the texts and save runtime.
    Kind Regrads
    Roman

  • Diff between customizing request and workbench request

    hai everybody...
    i want to know the  difference between customizing and workbench request.
    and tell me what is customizing request?
    and also what is workbench request?
    thanks ...
    velu.......

    Hi,
    Workbench Requests
    When you change a Repository object of the ABAP Workbench, a query window appears in which you need to specify a Workbench request. You can only save the changes if you have assigned the object to a change request.
    Workbench requests and the tasks assigned to them are normally used to record changes to Repository objects and Customizing for all clients. However, you can also include client-specific Customizing.
    Whether the changes to Repository objects are transported depends on whether a transport route is defined from the current SAP System for the package of these objects. From the system settings, the system automatically determines whether the change requests are transportable and to which target system they should be transported.
    Customizing requests
    Customizing requests record client-specific Customizing settings made in a single client (the source client of the request).
    Automatic recording of configuration activities in the Customizing work for a client can be activated or deactivated for each client with Client Control. If automatic recording is active, a query window appears when you change Customizing settings, asking you to specify a Customizing request.
    Whether Customizing requests are transported or not, does not depend on the objects entered, as is the case with Workbench change requests. The Customizing requests in an SAP System (or in a client if you use Extended Transport Control) are either all transportable or all local, depending on the system setting. The system uses the standard transport layer to determine automatically whether the change requests are transportable and to which target system they should be transported. However, you can change this manually.
    Hope this info helps.
    Regards,
    Kumar.

  • Accept language in Http Header of Aqualogic portlet.

    Hi, we have developed one web page using ASP.Net and hosted in the Aqualogic portlet server, when ever we access that page from different location/browser, we are getting "en-us" as accept language in the Http header variable of Request object, but it should change based on the location and browser.
    Please let us know,do we have to modify any settings in the aqualogic portal?
    Note: We are getting different accept language from the same code when hosted on the web server/local(Without Aqualogic).
    Thanks in Advance.
    Edited by: 993251 on Mar 12, 2013 11:08 PM

    >
    by using Client Cert authentication I have to set HTTPS required to true.
    >
    Yes.
    >
    When I try to invoke this service with http request, it redirects to https service.
    This actually just trashes the entire idea of terminating SSL in the load balancer.
    >
    Not necessarily. Although direct HTTP request to WebLogic is redirected to HTTPS enabled port, you can still use this settings with WebLogic plugin. I'm not aware of your deployment, but I use Apache plugin for WebLogic, terminate SSL on Apache and I'm still able to send requests authenticated by certificate from client through HTTPS.
    I don't know about F5, but I guess there should be similar feature as well.
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/cluster/load_balancing.html

  • OdiIinvokeWebService - SOAP - HTTP header

    Using OdiIinvokeWebService and HTTPS protocol, can an HTTP header be passed with the SOAP request?
    Thank you

    I am sending the SOAP request through SoapUI.
    Here is the sample request which i have used.
    <?xml version="1.0"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://requisition.api.newscale.com">
    <soapenv:Header>
    <req:AuthenticationToken>
    <req:Username>***</req:Username>
    <req:Password>***</req:Password>
    </req:AuthenticationToken>
    </soapenv:Header>
    <soapenv:Body>
    <req:getRequisitionStatus>
    <req:loginUserName>***</req:loginUserName>
    <req:requisitionId>123456</req:requisitionId>
    </req:getRequisitionStatus>
    </soapenv:Body>
    </soapenv:Envelope>
    Here i have to add the additional HTTP header with this request.

  • ESB requires "SOAPAction" to be set in HTTP header?

    I'm trying to insert an ESB flow between an existing web service and client. The service and client were previously built with Apache Axis.
    By generating an appropriate WSDL (doc/wrapped rather than Axis' default RPC style) for the existing service, I'm able to connect the ESB to the service.
    The problem is that the existing client (built using Axis) sets the SOAPAction in the HTTP header to empty (SOAPAction: ""), and the ESB appears to require this to be set to the desired operation. If this is a hard requirement, then I can't directly connect the existing client to the ESB flow.
    So, the question is whether it's possible to have the ESB relax the requirement for the SOAPAction header. And if so, how?
    If I can't get the ESB to accept SOAP requests with an empty SOAPAction, then I'll have to create a custom adapter or insert an additional proxy layer (yuk). Anyone else have any suggestions?

    This is all done automatically by FB.
    Just to try something out I just now made a simple app with a label only and tried to upload to Google... FAILED!!!!
    "Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml"
    LOL, FB can't even create this. :-/
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/3.1">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.1
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
    Message was edited by: KesherMedia.Com

  • XML HTTP Header modify

    Hi,
    In my scenario I am calling a WebService. But when calling I am told to add the message ID also to the http header of the request XML message. Now, I am thinking about the possible options to add it to the HTTP Header.
    I am taking the Message ID from proxy as a field and have to add it to the http header of the soap message.
    System: PI 7.0 SP 16
    Thank you for your replies.
    Arman

    Yes. I see it is not part of the online help. You can see the ASMA fields in the online help for the SOAP sender adapter. They are the same for the receiver adapter. You should see it in the communiacation channel.
    Regards
    Stefan

  • How to set custom HTTP header for single sign on

    Currently we just begin to use an application called "etran". This application requires user name and password to login. Now, my assignment is to integrate etran application in our internal application. This means that somewhere in our internal application, there is a link leads to the etran application.
    It is going to be single sign on, that means that once user logs into our internal application, when he/she clicks on the etran link, no sign on to etran is needed.
    I consult with the technical people in etran. they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?
    Thanks in advance for your help.

    sharon38_74 wrote:
    they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?Your application need to act like a proxy. You can invoke a HTTP request programmatically using java.net.URLConnection. You can set request headers using URLConnection#setRequestProperty(). Also see the API docs: [http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html]. You only need to know the header field name where to set the Base64-encoded value in. You need to Base64-encode the value yourself.

  • How to deal with the "Set-Cookie" field in HTTP header??

    I follow the RFC-2616 specification to write a socket program to fetch web pages.
    I have to deal with all the fields included in the HTTP header.
    But the RFC-2616 doesn't talk anything about the "Set-Cookie" field.
    Does anyone know how to handle this field or provide me any useful documentation.
    Any help is appreciated.

    A cookie is set with the "Set-Cookie: "-field in the http header, like this:
    Set-Cookie: mycookie=someValue
    This cookie should only be returned to the same host as it came from, like this in the http header of a request:
    Cookie: mycookie=someValue
    If the parameter looks like this:
    Set-Cookie: mycookie=someValue; path=/cgi-bin
    , the cookie should only be returned to the host if the request path starts with /cgi-bin
    If the parameter looks liek this:
    Set-Cookie: mycookie=someValue; domain=.mydomain.com
    , the cooke should be returned to all hosts in the .mydomain.com-domain
    There is also a "expires="-field, which works as expected and a "secure"-field, which I'm not sure how to handle. Maybe the cookie should only be sent to an SSL-enabled host?
    Hope this helps you. Bye,
    Dag W.

  • REG : HTTP header fields (Synchronous response)

    Hi All,
             Can anyone please explain the advantage of using this function in the receiver HTTP adapter( ie
    "Set adapter specific message attribute -> HTTP header fields (Synchronous response)")
    and how this can be implemented?
    Thanks in Adavnce,
    Siva

    >
    sivarama krishna wrote:
    > Hi All,
    >
    >          Can anyone please explain the advantage of using this function in the receiver HTTP adapter( ie
    > "Set adapter specific message attribute -> HTTP header fields (Synchronous response)")
    >  and how this can be implemented?
    >
    >
    >
    > Thanks in Adavnce,
    > Siva
    from help:
    If you want to save HTTP header fields from the synchronous response in the XI message header, choose HTTP Header Fields (Synchronous Response) and enter the fields in the fields Field 1 to Field 6.
    The fields must have the same names as the fields that are also to be sent in the HTTP response.
    The technical names of the fields are HeaderFieldOne,...,HeaderFieldSix.
    this means that in case you look to access the header of the response message of a sync http you can use this ASMA.
    the implementation will be in your response mapping, using dynamic configuration - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

Maybe you are looking for

  • Required Start date in Notification

    Hi All, Maint order is assigned as a call object for a maint plan. After scheduling the maint order is generated with the basic date as per the planned date in maint plan. But the notification generated along with the order has the required start dat

  • Notifications for updating apps

    When I get notifications for updating apps, the sign in page automatically lists an old email address that I cannot overtype or sign in with.  I've changed my address on the I.D. site but the old one still automaticly appears and remains unchangeable

  • System Preferences/Internet/email

    I am using OSX 10.2.8 and MAIL 1.2.5 I have just had to reset my e-mail account. Why doesn't the MAIL application refer to the settings entered in the Internet pane of System Preferences. MAIL HELP says that it should but I had to enter account detai

  • Configuration information

    Hi, We are going to use AT-MIO-16E-10 and PCI-DIO-32SH in RTX subsystem, a real-time extention for Windows NT. I need detail information about the port addresses for all analog and digital I/O for development of device drivers in RTX. Does anyone kno

  • Does JE 4.0 supports BigDecimal for persistence?

    According to JE 3.X note, BigDecimal will be supported. Not sure if it supported in 4.0 but seems the version I am using is not (je-4.0.71). If not, is there a plan to do that (including other commonly used java data type?) that are generally support