Reading Custom Headers in CFMX

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Reading Custom Headers in CFMX

    I'm not sure if this is an IIS or CFMX issue apologies if I'm off base. I
    have a custom middleware application running between the browser and an IIS
    server running CFMX. In IIS' HTTP Header page I am inserting a custom header
    for all requests called

    assume_role

    Where the value is 1

    I cannot get this value when doing a dump of the headers from CFML. It also
    does not appear in the list of ALL_HTTP as some documentation states is my
    second place to check if I can't get it directly. Any ideas?

    CT


    Charles R. Thompson Guest

  2. Similar Questions and Discussions

    1. How to query a MDE Database for reading with CFMX?
      Hi, I need to query a protected MDE Access Database, but I cannot select the DB in the CFMX Admin. What can I do? and how? Is there an other way...
    2. Reading CSV files in CFMX
      This worked in CF5: <cfset myConnectString = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" & ExpandPath("../Data/DataDir") &...
    3. Custom headers screwing up postback
      I have a datagrid which has custom header added in in a grouping fashion as per so many articles. Works fine. in each normal row, there is a...
    4. Reading and Writing Headers
      Gosh. I posted this earlier on Google Groups, but it didn't appear. Perhaps there was a problem at Google. Forgive me for posting it again. This...
    5. Writing/Reading Custom Headers
      Tell me if this can be done, and if I have a misconception here. I am writing an app that will be served up in an app farm, and therefore I need...
  3. #2

    Default Re: Reading Custom Headers in CFMX

    Make sure if IIS is acturely sending the header.
    Alen Guest

  4. #3

    Default Re: Reading Custom Headers in CFMX

    Ok.. did a little more legwork. I need a way to insert 'Request' headers
    into page redirect so I can evaluate that information in a validation page.
    Something like:

    <cfheader name="myname" value="charles">
    <cflocation url="vars.cfm">


    Then in vars.cfm be able to retrieve the header myname as a 'request' (not
    response) object. I can see in my http traces that it only gets added to the
    response each time.

    Can I do this somehow manually in the CFMX configuration XML files? It's
    just for temporary testing so however I have to hack it is fine.


    Charles R. Thompson Guest

  5. #4

    Default Re: Reading Custom Headers in CFMX

    Scratch all this. I ended up using Proxomitron to fake the Request headers
    required for testing. Appears to work fine.


    Charles R. Thompson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139