Header field

Didn't know where to post this post, but im a newbie, so ill post it among the other newbie posts ;)
My question: what is a header field? Im trying to use the method getHeaderField(String), and I want the value of the string (in the header field?) back. This is what I wrote:
URL url = new URL("http://www.somesite.com/somepage.html");
URLConnection urlconnection = url.openConnection();
String s1 = urlconnection.getHeaderField("Some string");
System.out.println(s1);
So I want the value of the "some string" (which lies in the header, or??), but I only get the value 'null'. Is this correct?
Thanks

Try this and then modify it for your own useimport java.net.*;
import java.util.*;
public class ShowURLHeaders {
    public ShowURLHeaders(String m_url)
        try {
            URL url = new URL(m_url);
            URLConnection urlconnection = url.openConnection();
            Map headers = urlconnection.getHeaderFields();
            Set keys = headers.keySet();
            Iterator it = keys.iterator();
            while (it.hasNext()) {
                String key = (String ) it.next();
                Object value = headers.get(key);
                System.out.println(key + " = " + value.toString());
        } catch (Exception e) {
            // Do something meaningful here.
    public static void main(String[] args)
        ShowURLHeaders ut = new ShowURLHeaders(args[0]);
}

Similar Messages

  • Cookie - Bad Request - Size of a request header field exceeds server limit -

    We are on cq5.5. We see this error intermittently. What is the best way to fix this? Cookie size seems to be adding to the issue.
    Bad Request
    Your browser sent a request that this server could not understand.
    Size of a request header field exceeds server limit.
    Cookie: cq-mrss=path%3D%252Fcontent%252Fdam%26p.limit%3D-1%26mainasset%3Dtrue%26type%3Ddam%3AAsse t; __unam=acfbce4-13b8ffd6084-6070cfe6-4; __utma=16528299.1850197993.1355330446.1361568697.1362109625.3; __utmz=16528299.1355330446.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); REM_ME=1004; SessionPersistence-author-lx_qa_author2=CLIENTCONTEXT%3A%3DvisitorId%3Danonymous%2Cvisito rId_xss%3Danonymous%7CPROFILEDATA%3A%3DauthorizableId%3Danonymous%2CformattedName%3DAnonym ous%20Surfer%2Cpath%3D%2Fhome%2Fusers%2Fa%2Fanonymous%2Cavatar%3D%2Fetc%2Fdesigns%2Fdefaul t%2Fimages%2Fcollab%2Favatar.png%2Cage%3D%2Cage_xss%3D%7CTAGCLOUD%3A%3Dtopic%3Aworkflow%3D 14%2Cindustry%3Aprocess_management%3D2%2Ctopic%3Aprocess_mining%3D3%2Ctopic%3Aprocess_docu mentation%3D1%2Ctopic%3Aintelligent_capture%3D5%2Cindustry%3Acapture%3D5%2Ctopic%3Adocumen t_imaging%3D2%2Ctopic%3Adistributed_intelligent_capture%3D2%2Ctopic%3Adocument_output_mana gement%3D4%2Cindustry%3Acontent_management%3D14%2Cindustry%3Asoftware_solutions_hardware%3 D4%2Cindustry%3Adevice_management%3D2%2Ctopic%3Ahelp_desk_services%3D2%2Cindustry%3Aintera ct%3D15%2Ctopic%3Asecure_content_monitor%3D2%2Ctopic%3Aelectronic_forms%3D2%2Ctopic%3Ainte lligent_forms%3D2%2Ctopic%3Adocument_accounting%3D2%2Ctopic%3Aerp_output_management%3D2%2C topic%3Aprint_release%3D2%2Cindustry%3Aoutput_management%3D4%2Ctopic%3Aerp_printing%3D4%2C topic%3Aenterprise_search%3D4%2Ctopic%3Amicrosoft_sharepoint%3D6%2Ctopic%3Adocument_filter s%3D4%2Cindustry%3Asearch%3D4%2Ctopic%3Ahuman_services_case_management%3D2%2Cindustry%3Aca se_management%3D2%2Cindustry%3Aimprove_business_processes%3D6%2Ctopic%3Abusiness_process_m odeling%3D1%2Ctopic%3Alawson%3D1%2Ctopic%3Aapplication_integration%3D8%2Cindustry%3Asoluti on%3D4%2Ctopic%3Amicrosoft_dynamics_crm%3D2%2Cindustry%3Ahealthcare%3D13%2Cindustry%3Areta il%3D8%2Cindustry%3Abanking%3D3%2Cindustry%3Aincrease_efficiency%3D7%2Cindustry%3Agovernme nt%3D8%2Ctopic%3Amicrosoft_outlook%3D2%2Ctopic%3Aesri%3D2%2Ctopic%3Ajd_edwards%3D2%2Ctopic %3Asap%3D1%2Cindustry%3Adrive_business_growth%3D1%2Cindustry%3Abusiness_challenges%3D6%2Ci ndustry%3Aconnect_distributed_workforce%3D1%2Ctype%3Alanding_page%3D2%2Ctopic%3Aconsulting _services%3D2%2Ctopic%3Aretail_pharmacy%3D2%2Cindustry%3Aindustry_solutions%3D5%2Ctopic%3A health_information_management%3D3%2Ctopic%3Apatient_scheduling%3D3%2Ctopic%3Aclinical_depa rtment_solutions%3D3%2Ctopic%3Aclinical_hit_integration%3D3%2Ctopic%3Apatient_admissions_r egistration%3D3%2Ctopic%3Ahealthcare_forms_management%3D3%2Ctopic%3Apatient_access%3D3%2Ct opic%3Aenterprise_print_management_software%3D2%2Ctopic%3Aprint_queue_management%3D2%2Ctop ic%3Aadvanced_print_management%3D2%2Ctopic%3Aemployee_onboarding%3D3%2Ctopic%3Ahuman_resou rces%3D1%2Cindustry%3Ahuman_resources%3D3%2Ctopic%3Aemployee_recruitment%3D1%2Cindustry%3A manufacturing%3D2%2Ctopic%3Aplatform_integration%3D1%2Ctopic%3Awealth_management%3D2%2Cind ustry%3Afinancial_services%3D2%2Ctopic%3Aaccount_opening%3D2%2Ctopic%3Acompliance%3D1%2Cin dustry%3Acompliance%3D1%2Ctopic%3Abusiness_operations_solutions_for_banking%3D2%2Ctopic%3A retail_delivery%3D1%2Ctopic%3Aloan_processing%3D1%2Ctopic%3Aon_demand_negotiable_documents %3D1%2Ctopic%3Anew_account_openings%3D1%2Ctopic%3Aon_demand_forms_customer_communications% 3D1%2Cindustry%3Ainsurance%3D1%2Ctopic%3Amicr_printing%3D1%2Ctopic%3Abank_branch_capture%3 D1%2Ctopic%3Aagency_capture%3D1%7C; ys-cq-damadmin-tree=o%3Awidth%3Dn%253A240%5EselectedPath%3Ds%253A/content/dam; ys-cq-damadmin-grid-assets=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Anumberer%25255E width%25253Dn%2525253A23%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253At humbnail%25255Ewidth%25253Dn%2525253A45%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25 253Ds%2525253Atitle%25255Ewidth%25253Dn%2525253A78%25255Ehidden%25253Db%2525253A1%25255Eso rtable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Aname%25255Ewidth%25253Dn%2525253A3 37%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Apublished%25255Ewidth%2 5253Dn%2525253A37%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Amodified %25255Ewidth%25253Dn%2525253A78%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%25 25253Ascene7Status%25255Ewidth%25253Dn%2525253A78%25255Ehidden%25253Db%2525253A1%25255Esor table%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Astatus%25255Ewidth%25253Dn%2525253A 71%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Dn%2525253A8%25255Ewidth%25253Dn%2 525253A78%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Aworkflow%25255Ew idth%25253Dn%2525253A78%25255Ehidden%25253Db%2525253A1%25255Esortable%25253Db%2525253A1%25 5Eo%25253Aid%25253Ds%2525253Awidth%25255Ewidth%25253Dn%2525253A37%25255Esortable%25253Db%2 525253A1%255Eo%25253Aid%25253Ds%2525253Aheight%25255Ewidth%25253Dn%2525253A37%25255Esortab le%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Asize%25255Ewidth%25253Dn%2525253A37%25 255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Areferences%25255Ewidth%25253 Dn%2525253A199%25255Esortable%25253Db%2525253A1%5Esort%3Do%253Afield%253Ds%25253Alabel%255 Edirection%253Ds%25253AASC; amlbcookie=04; ObLK=0x82abacf3a5e3b1e2|0x1cf34305ac210c7e9b2b07e3725392e2; iPlanetDirectoryPro=AQIC5wM2LY4Sfcw0UQ2MST5NlqDAsUi2dscer0wO7VMy9pE.*AAJTSQACMDYAAlMxAAIw NA..*; renderid=rend01; login-token=c9c0d027-c5f9-4e5a-9a90-09d1cf21cfd2%3a0279e369-1689-433c-80ef-d8411040efe5_6 15c2fd1eba8fd42%3acrx.default; ys-cq-siteadmin-grid-pages=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Anumberer%25255E width%25253Dn%2525253A23%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253At humbnail%25255Ewidth%25253Dn%2525253A50%25255Ehidden%25253Db%2525253A1%25255Esortable%2525 3Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Atitle%25255Ewidth%25253Dn%2525253A386%25255Es ortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Aname%25255Ewidth%25253Dn%2525253A 148%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Apublished%25255Ewidth% 25253Dn%2525253A25%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Amodifie d%25255Ewidth%25253Dn%2525253A86%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2 525253Ascene7Status%25255Ewidth%25253Dn%2525253A86%25255Ehidden%25253Db%2525253A1%25255Eso rtable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Astatus%25255Ewidth%25253Dn%2525253 A76%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Aimpressions%25255Ewidt h%25253Dn%2525253A86%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Atempl ate%25255Ewidth%25253Dn%2525253A86%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds %2525253Aworkflow%25255Ewidth%25253Dn%2525253A86%25255Ehidden%25253Db%2525253A1%25255Esort able%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Alocked%25255Ewidth%25253Dn%2525253A8 6%25255Ehidden%25253Db%2525253A1%25255Esortable%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2 525253AliveCopyStatus%25255Ewidth%25253Dn%2525253A86%25255Ehidden%25253Db%2525253A1%25255E sortable%25253Db%2525253A1%5Esort%3Do%253Afield%253Ds%25253Atitle%255Edirection%253Ds%2525 3AASC; ys-cq-siteadmin-tree=o%3Awidth%3Dn%253A306%5EselectedPath%3Ds%253A/content/homesite/en-US /insights/video_unum-group-accelerates-workflows-with-solutions-; ys-cq-cf-clipboard=o%3Acollapsed%3Db%253A1; ys-cq-cf-tabpanel=o%3AactiveTab%3Ds%253AcfTab-Images-QueryBox; JSESSIONID=ad311ac3-7c24-4e62-ae8a-0ebacd8e8188; SessionPersistence-author-lx_qa_author1=CLIENTCONTEXT%3A%3DvisitorId%3Danonymous%2Cvisito rId_xss%3Danonymous%7CPROFILEDATA%3A%3DauthorizableId%3Danonymous%2CformattedName%3DAnonym ous%20Surfer%2Cpath%3D%2Fhome%2Fusers%2Fa%2Fanonymous%2Cavatar%3D%2Fetc%2Fdesigns%2Fdefaul t%2Fimages%2Fcollab%2Favatar.png%2Cage%3D%2Cage_xss%3D%7CGEOLOCATION%3A%3D%7CTAGCLOUD%3A%3 Dindustry%3Aconnect_distributed_workforce%3D1%2Cindustry%3Abusiness_challenges%3D1%2Cindus try%3Acontent_management%3D1%2Cindustry%3Ahealthcare%3D1%2Ctopic%3Afinance%3D1%2Ctopic%3Ap rocurement_processing%3D1%2Cindustry%3Afinancial_services%3D2%2Cindustry%3Ainsurance%3D2%2 Cindustry%3Aindustry_solutions%3D2%2Ctopic%3Aagency_capture%3D2%7C; s_cc=true; s_sq=lxmtest%3D%2526pid%253Dinsights%25253Avideo_unum-group-accelerates-workflows-with-so luti

    Hi EbodaWill,
    File daycare for fp 2324 where in you can configure & allow you to increase the request header size and avoid the bad request error OR for a package that improves client side persistence & does not use cookies.
    Thanks,
    Sham

  • Invoice Template problem - Putting a Header field in repeating Lines rows

    Dear experts,
    I would be grateful for a problem I am having with an Invoice statement I am developing (Oracle Applications 11.5.10 with BI Publisher version 10.1.3.4). This is very similar to the one in Tim Dexter's Blog (Anatomy of a Template):
    http://blogs.oracle.com/xmlpublisher/2007/03/anatomy_of_a_template_ii_heade.html
    My requirement is to add a single line into the lines table, as seen in the Blog, which is a COMMENTS field from the header part of the XML and the problem is that it can be 1 line to maybe 5 lines. This is only on the first page. This causes problems as I don't know how to find out how far down the lines table I may be after adding this COMMENTS header field in here, to then know how many lines to loop over to ensure that the lines do not carry on printing over the bottom of the page e.g. if the COMMENTS is 3 lines - how do I know this to then only print 3 minus the maximum lines per page ($lpp) only on the first page?
    Any pointers would be of great help.
    Many thanks,
    Mark

    The COMMENTS field I've found out can be of any varible size and include carriage returns. For example, could be:
    JD Trx special instructions 010908
    FAO: PETER MUSCUTT
    REF: FERRY ROAD 2351
    ========================
    INCOME DUE TO COMPANY FOR
    THE OPERATION OF EFERRY
    ROAD CAR PARK
    This causes such problems as being able to know how many lines this field will be, so that I know where to start the first Lines row in the invoice and also how many lines I can put on this first page (starting point - $lpp).
    One method I thought would be to count how many characters there are in this field, when it reaches the line size on the invoice, increment a count varible that would be used to indicate the starting point for the first lines record. I would need to compare each character and if it is a carriage return, then increment the count also. This seems quite a heavy wieght way to solve this and would welcome any over ideas.
    Thanks,
    Mark

  • How to view "From" header field in OUTgoing messages in Mail? Frustrating.

    In Mail v.4.3 (in OSX 10.6.4), I need to view the "From" field in my outgoing messages as I am composing them. However, there seems to be no setting in Mail which allow this.
    I find this very frustrating because in Eudora (which I used to use), the "From" field in outgoing messages is visible by default. But in Mail, not only is it not visible by default, there seems to be no way to make it visible.
    In the "Customize..." button to the left of the Subject field in outgoing messages, one has the option to add as default outgoing message fields "cc," "bcc," "Reply-To," and "Subject," but none of those are what I want. It allows one to also view the address of the mail server, but that also is not what I'm looking for. What I want is to see my outgoing +email address+. And nowhere is there an option in the Preferences to turn this on. (At least as far as I could tell.)
    In fact, the only way to see the identity in the outgoing "From" field is to go to Preferences, then click on Accounts, and look there; or send oneself a test email. Both of which are a hassle and should be unnecessary.
    In case you're curious as to why I want to see my outgoing "From" header field:
    I have several different "personas" online, each of which uses a different email address: My work address (with a work-related domain); my family/personal address (with a different email address than my work address); an online avatar I use in various gaming sites (also with its own address, since I don't want to use my personal name/address in the gaming community); and so on. However, I have all incoming emails to all accounts auto-forwarded to the same central email account. Most of the time I'm just replying to business emails, so my outgoing "Full Name" and "Email Address" (in Preferences>Accounts) are generally set to my business name and address; but on occasion when I want to reply to a non-business email and not have the recipient see my business email address, I go in to Preferences>Accounts and change "Full Name" and "Email Address" (i.e. what is displayed to the user) to something different. And when I'm done with that, I change it back to my business address.
    However, sometimes I forget if I've changed it back or not, or forget what I've changed it to. In Eudora, All one needed to one was create a new outgoing email and it would display the "From" field so I could instantly see my outgoing identity. But in Mail, there is no "From" field in outgoing emails, so I'm constantly nervous and wondering which outgoing identity I may have changed to and accidentally forgotten to change back from.
    (Yes, yes, I know that if a recipient wanted to be snoopy, they could look at the "full headers" of any incoming email and see the name of my email server, which may different from my displayed email address; but we're not talking about spy-stuff here, I'm just trying to not confuse people and keep business separate from personal.)
    So: is there any way for me to see the outgoing "From" field in the emails I send? Or am I condemned to constantly (and mostly unnecessarily) checking "Preferences>Accounts" to see what I have enetered there?

    Thanks for replying.
    What is the "compose window" to which you are both referring? I could find no reference to such a thing in the Mail menus or Help.
    Do you mean the "Composing" pane in the Preferences? I don't see what either one of you is referring to there, but I did notice there something that could function as an awkward workaround: If I click on the "Automatically CC myself" box in Preferences>Composing, then when I start a new email, my email address is displayed in the "CC" field -- and luckily, Mail allows me to then delete my email address out of the CC field, so I don't have to spam myself with duplicate copies of all my emails. This way, I can at least briefly see what email address I'm using, before I delete it from the CC field. Pretty awkward and unnecessarily laborious, however -- still not a perfect solution.
    Or, by "composing window," are you referring to an outgoing email? As I said in my original comment, I do see what Ernie called "a small box with lines and an arrow at the bottom left of the header box." This is what I had to say about it:
    +"In the "Customize..." button to the left of the Subject field in outgoing messages, one has the option to add as default outgoing message fields "cc," "bcc," "Reply-To," and "Subject," but none of those are what I want. It allows one to also view the address of the mail server, but that also is not what I'm looking for. What I want is to see my outgoing email address. And nowhere is there an option in the Preferences to turn this on. (At least as far as I could tell.)"+
    In other words, when Ernie says, "click the box beside From," I can't do that -- because there is no such option. That's the whole problem in the first place. If there was a "From" field beside which I could click a box to make it appear, I would have done so! But there is no "From" field in the "Customize" section of the "small box with lines and an arrow at the bottom left of the header box."
    I find it completely mystifying that both of you seem to be able to see a "From" field available to be added to the header of outgoing emails, yet no such option is available to me in Mail. What possibly could be causing this? 10.6.4 is freshly installed on my machine, and Mail seems brand new and uncorrupted. And I'm using Mail 4.3, the latest version.
    Are you saying that everyone else can see an option to have a "From" field in their outgoing messages, but I uniquely don't? Very very very strange.

  • I can no longer access Bejeweled Blitz through my facebook account.  I get the message that says, "your browser sent a request that this server could not understand. Size of a request header field exceeds server limit".  Help please.

    I can no longer access Bejeweled Blitz through facebook.  I get the message, "your browser sent a request that this server could not understand. Size of a request header field exceeds server limit". I can access Bejeweled through FB using my husband's log in so to me that suggests the problem is with my log in. Help please.

    Contact FB or use another browser. 

  • Cannot retrieve my e-mail "browser sent request server could not understand. Size of request header field exceeds server limit"

    Upgraded to Firefox 5.0.1 yesterday. No, after logging on to firefox, which takes me to my comcast page and when I try to get
    my e-mail I get this message "your browser sent a request this server could not understand. Size of request header field exceeds server limit" Then it says something about "cookies" I also tried to connect to other sites and get similar messages. Just to let you know I am not a guru, and 80 years old, but I did not have this problem with the previous version. Question, why are the headers repeated? Could that be the problem???

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites (e.g. comcast) that cause problems.
    "Clear the Cache":
    * Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Firefox > Preferences > Privacy > Cookies: "Show Cookies"

  • Making a header field as non editable while creating PO using ME21n

    Hi Friends,
    Could any one tell me the BADI or screen exit to make a header field (for eg: EKGRP - Purchasing Group) as non editable after giving default value to it?
    Thanks in advance,
    Ram

    Hi Ram,
    goto se80 t-code and give 'ME' package, and now see the enhancements available.
    You l get a relavent one, if you go through all those.
    Hope this helps
    Regards,
    Sujatha

  • PPCO0007 User Exit for  Changing Header Fields During Order  (CO40)

    .. Hi !!!!
      I need your help or suggestions,
      I need to change the standar order  before to save, i found the user exit PPCO0007,
      i assign the new value for the order, but when finish the fuction, EXIT_SAPLCOZV_001, the new values are
      lost, and finally the system set the standard order.
        Someona know how can change the order and the the batch.
         Thanks
    Noemí Huerta

    Hi Noemi
    You can use the enchancement PPCO0007 (exit when the production order is saved).
    Use the function module EXIT_SAPLCOZV_001 (User Exit for Checking or Changing Header Fields During Order Save) to update the field priority starting the information in the material-customer info record.

  • BADI-User exit required for updating Purchase order header field -IHREZ

    Hello All,
    We have requirement in our business to update the purchase order header field "our reference" EKKO-IHREZ with some text field. We need a BADI/user exit that can be used for updating this field . We have checked the BADI ME_PROCESS_PO_CUST and unfortunately we are not able to use this BADI as it getting triggered in enjoy SAP transactions ME21N , ME22N etc. We are not creating the purchase order manually and we are using ME59N for creating Purchase order . Hence we are looking for some user exit/BADI that can be used in ME59N for updating the purchase order header field IHREZ.
    Thanks in advance for your immediate response .
    With regards,
    Joseph Anand B

    TRY using the exist u2022     EXIT_SAPLME59_001
    You can also later on add this field by BAPI_PO_CHANGE

  • HTTP Header fields in SOAP adapter - Part 2

    Hi All,
    With regards to my previous thread HTTP Header fields in SOAP adapter
    my header issue is solved and hence I have closed the thread but still I am not able to make the connection successful. The new problem is below
    My vendor requirement is to specify the header as "Ent-sender" but when we give the same in XI in communication channel it automatically convets into uppercase "ENT-SENDER".  Due to case-sensitive in vendor server the connection is not gettingestablished.
    Please help me out how to solve the problem.
    <b>Note:</b> Sorry for the new thread as it was created due to new problem and also the previuos thread is already too long.
    Regards,
    Dhill

    Hi Neaves,
      Thank you, I jave seen the note and find the below solution will be some what realated to my prblem.
    <u><b>The nosoap mode lets the adapter send the XI payload directly without wrapping it in the SOAP envelope. Although the main use of this mode is to send some plain text content directly to some web server, one can use this mode to send their own SOAP message (e.g., with arbitrary headers) to an external web service (See related questions). In this case, the XI payload must be formatted in the SOAP envelope.
               To use the nosoap mode, the channel must be configured to use no SOAP envelope.</b></u>
    If yes, can you please let me know how to use nosoap mode otherise let me the other possibilities.  I am already using tcpg2.zip to trace the SOAP adapter in which it was confirmed that XI is changing the header automatically into CAPS whatever case we give,
    Regards,
    Dhill

  • Header Fields not picked in Http Adapter

    Hi ,
    I am sending a few custom header fields that have been set up in the HTTP adapter but for some reason they are not picked.
    Any suggestions..
    -Teresa

    Thanks Sameer,
      This note did help us pick up the header fields but on picking up it returns the header fields in lower case instead of the case Sensitive format I sent it in ..I looked at the trace log too and its in case sensitive format but when my 3rd party receives it, it is in lower case format...funny even the <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    is also in lowercase..I am running XI 3.0 SP4..Is it an XI issue or something to do with my integration server which processes my HTTP adapter??? Or any other notes also needs to be applied??
    Please help..
    Trace level="1" type="T">---- Plain HTTP Adapter Outbound----</Trace>
      <Trace level="1" type="T">----
    </Trace>
    - <Trace level="1" type="B" name="CL_HTTP_PLAIN_OUTBOUND-ENTER_PLSRV">
      <Trace level="3" type="T">Quality of Service EO</Trace>
      <Trace level="1" type="T">Get XML-Dokument from the Message-Objekt</Trace>
      <Trace level="3" type="T">URL http://xkqbdev.ampton.net:50080/abc/Web/servlet/XMLChannelServlet</Trace>
      <Trace level="3" type="T">Proxy Host: 10.69.14.98</Trace>
      <Trace level="3" type="T">Proxy Service: 80</Trace>
      <Trace level="3" type="T">Authorization: Basic NDQ0NDQ0NDQ0OjQ0NDQ0NDQ0NA==</Trace>
      <Trace level="3" type="T">~request_method POST</Trace>
      <Trace level="3" type="T">~server_protocol HTTP/1.0</Trace>
      <Trace level="3" type="T">accept: /</Trace>
      <Trace level="3" type="T">content-type: text/xml</Trace>
      <Trace level="3" type="T">Header-Fields</Trace>
      <Trace level="3" type="T">X-Extricity-Sender-ID 444444444</Trace>
      <Trace level="3" type="T">X-Extricity-BO-Type-ID http://xml.cXML.org/schemas/cXML/1.2.011/cXML.dtd</Trace>
      <Trace level="3" type="T">Prolog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">Epilog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">content-length 3023</Trace>
      <Trace level="2" type="T">HTTP-Response :</Trace>
      <Trace level="2" type="T">Code : 500</Trace>
      <Trace level="2" type="T">Reason: Internal Server Error</Trace>
      <Trace level="2" type="T">Code : 500</Trace>
      <Trace level="2" type="T">Reason: Internal Server Error</Trace>
      </Trace>
      </Trace>
    -Teresa

  • How to put an xml element in the header field?

    Hello friends,
    My requirement is like I've a particular element that needs to be printed on the header filed
    for ex --dept_no and dept_name in the header field...please let me know how..
    Thanks

    For each occurrence of DEPT_GROUP, a new section is created.
    These sections can have different header/footer.
    In case, you want different values to be displayed in header/footer section(as your requirement) or you want the page numbers to be reset for each group, you can use this command.
    Check the user guide http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535398

  • HTTP adapter header fields

    Hai All,
       Is there any option to add header fields dynamically in the HTTp adapter header fields?
    I am doing a file to HTTp scenario.In this i have to pick a file using file adapter and add some header values(header values are both static and dynamic)and using HTTP adapter place it at a target URL.Is it possible to avoid  mapping since there is only picking up of file and adding some headers to it.I can see header fields in the HTTP reseiver adapter.Can i use these to add the static and dynamiuc header fields.specifically i have two questions.
    1)I want to include the source file name which is DYNAMIC as a field in the header fields in the target payload.How can this be achieved?Should i go for mapping and write a UDF for the same or is there any option to add dynamic values in the HTTP receiver adapter header fields?
    2)what are these header fields for?
    Can somebody explain it to me.I have gone through the Blogs like http receiver adapter configuration etc..would be of great help if anybody could explain it to me in detail.

    Thanks for the replies but my question is still un answered.please guide me on how to proceed?
    I am going to send a txt file.On top of the contents of the file i want these headers to be attached
    In the header fields of HTTP receiver adapter configuration can i give the following format?
    Header           Value
    AS2 from:    hgdfdjfhd
    AS2 to:        fhdfjdfdfnd
    subject:       hdsjdhsdsd
    will it appear in the target file as
    AS2 from:    hgdfdjfhd
    AS2 to:        fhdfjdfdfnd
    subject:       hdsjdhsdsd
    //file content starts here
    dsgdsjfgdsfggf
    hfdjhfdhfdjfdfhhdsfh
    hgdsjfgdsjfgdfdgfdg
    gfdsahdgsdfdgfgdsg
    what is to be done for acheiving this kind of target file?
    "If you choose to use HTTP Header fields then you can enter Field1 to Field 6 values. This will be embeded into the HTTP request as HeaderFieldOne and so on."
    can this HeaderFieldOne to HeaderFieldsix be populated with any valueslike
    AS2 from: ggdhfsdf and all?
    please help me out.

  • Tomcat5.5/Java1_5_05: Invaild Header field when starting webapp...

    Hi all,
    We just moved some java JSP's/code to a new Apache2(2.0.55)/Tomcat5.5.12 running Java 1_05_05 server.
    Java -version:
    java version "1.5.0_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode)
    I get a similar error that deals with invalid headers.
    This code(.jar/jsp's) have been running on a tomcat 4 server with Java 1_4:
    /usr/java/j2sdk1.4.1_02/bin/java
    Any idea why I might be getting this error, is it related to this previous post?
    INFO: HTMLManager: start: Starting web application at '/wsiathena'
    Nov 29, 2005 1:23:10 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error in dependencyCheck
    java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:389)
    at java.util.jar.Manifest.read(Manifest.java:167)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:152)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3998)
    at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175)
    at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527)
    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:514)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Nov 29, 2005 1:23:10 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Nov 29, 2005 1:23:10 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [wsiathena] startup failed due to previous errors
    Nov 29, 2005 1:23:10 PM org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[wsiathena] has not been started
    Nov 29, 2005 1:23:10 PM org.apache.catalina.core.ApplicationContext log
    INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
    Thanks for any input!
    Scott

    GJ Erick on finding one working solution.

  • Hoiw do I get HTTP Header fields?

    Hi,
    I want to get the http header field If-None-Match. How do I get a hold of the HTTP headers for a request? I do not want to use If-Modified-Since due the the problems with out of synchronized clocks, determining time zones etc.
    The content is in a BLOB, and I don't want to deliver it at all if not necessary. OWA_CACHE does not help, it still delivers the large amount of data.
    I can set the ETag header, no problem, but how do I get theIf-None-Match header field returned from the browser so I can avoid unnecessary content delivery?
    Thanks,
    Larry

    Is there a mod_plsql forum?
    I can't seem to find it, this looked the closest since I am under the impression HTMLDB depends on mod_plsql...
    Larry

  • CSS header-field redirect

    Hi,
    We have need to redirect mobile users to site that has an optimized view for the content. There are 32 devices needing to be redirected, by matching the User Agent field in the HTTP header.
    Do I need to create 32 individual L5 rules or will the CSS do an "OR" funtion on the fields defined in a single header group?
    Thanks,
    Pat
    !********************* HEADER FIELD GROUP *********************
    header-field-group Usablenet
    description " Match User Agent"
    description " Match User Agent"
    header-field 1 user-agent contain "AU-MIC"
    header-field 2 user-agent contain "AUDIOVOX"
    header-field 3 user-agent contain "Alcatel"
    header-field 4 user-agent contain "BlackBerry"
    header-field 5 user-agent contain "Blazer"
    header-field 6 user-agent contain "Danger\ hiptop"
    header-field 6 user-agent contain "DoCoMo"
    header-field 7 user-agent contain "Ericsson"
    header-field 8 user-agent contain "Googlebot-Mobile"
    header-field 9 user-agent contain "Handheld"
    header-field 10 user-agent contain "Klondike"
    content Test_L5_http-header
    vip address 192.168.1.10
    header-field-rule Usablenet
    protocol tcp
    port 80
    url "/*"
    add service mobile_redirect
    active
    service mobile_redirect
    keepalive type none
    type redirect
    no prepend-http
    domain "http://mobile.com"
    active

    Syed,
    We have 5 L5 rules on this VIP currently, I'm thinking adding 30 more rules will affect the response times.
    Our other alternative is to do the redirect on the web server.
    Thanks, for the quick reply.
    -Pat

Maybe you are looking for

  • Problem with "Package Spec" please help.

    Hello once again. I'm developing a master-detail form, so I'm using a "Package Spec" variable to hold the primary key value from the master form. The primary key value for the master is generated by a sequence. Here's the package spec: PACKAGE primar

  • What credit limit is valid - the one set at Vendor master , PO or invoice ?

    Dear Friends, I want your suggestions, if weather there is any standard guidelines on which credit limit is followed if I maintain different values at Vendor master, purchase order and at Invoice level Looking forward for your thoughts ?

  • Authpriv facility in solaris

    The authpriv facility is missing in solaris. how do i get a unix based syslog server receive authpriv syslog messages from a linux one? The authpriv logs are being ignored by the unix box but i can see other facility logs on the unix box. Thanks

  • Help with library files..

    I launch itunes with the option button and created a new library on an external drive. It created a folder call itunes with the database, xml, games music folder on it. Is there a way to have the library and playlist on my main drive with the music f

  • How to make DV file that does not need audio rendering

    Hi, I use MPEG Streamclip to convert video-footage captured on DVD (Sony camcorder) to DV format for compatibility with FCE. I use export to DV, PAL 25, 16:9 setting etc. Video works perfectly in FCE (e.g. video plays in canvas) with right aspect rat