I am developing a mule application. My start point is http. I need to authenticate my http calls using an authentication token which I am sending as request header. Now, How do I get this request header value in my Mule application?
get value from request header in http call -mule
8.2k views Asked by Dersana Jose At
2
There are 2 answers
0
Anirban Sen Chowdhary
On
Alternately, if your header is 'authToken' you can use use following expression to get your header :-
<logger message="#[message.inboundProperties.get('authToken')]" level="INFO" doc:name="Logger"/>
or
<logger message="#[message.inboundProperties.'authToken']" level="INFO" doc:name="Logger"/>
or
<logger message="#[message.inboundProperties['authToken']]" level="INFO" doc:name="Logger"/>
Related Questions in MULE
- How to compare two dates with only month and year in mule
- remove object from complex object if specific value is null
- Get flow name from subflow
- Convert a single column values into multiple rows using dataweave
- How to dynamically convert an list of strings into key value pair using dataweave 2.0
- Using $ in a string in a dataweave expression
- Generating an Array based on a total Count and split Number
- What should be my response body in raml if i am sending hashmap as response?
- Get Object from specific Bucket on AWS S3 in Mule 4
- How do I transform the incoming JSON payload having objects to a payload having a list of the objects expected by the downstream system
- Error while deploying app in Anypoint Platform using Azure DevOps
- Querriable properties available for the MuleSoft Anypoint Platform Cloudhub application log API?
- Import Java Jar in Mulesoft Project
- h2 In memory database private mode - unable to access console
- Dataweave Transformation- How can I reduce a payload array when condition is met
Related Questions in MULE-STUDIO
- What should be my response body in raml if i am sending hashmap as response?
- Maven Base Command Line Behavior with Munit Tests in Anypoint Studio 7.16
- Mule Code to convert CSV without headers into CVS with headers
- Failed to Invoke Salesforce Apex Rest endpoint in Mule 3
- Get XML payload size in MB
- Unable to set the attribute userAccountControl to 512 on Active Directory using mule4 LDAP connector
- How do I know the url I need to call an api deployed in CloudHub using anypoint platform? (MuleSoft)
- Unable to add additional flows to MuleSoft generated API Proxy Code
- Mule 3 in Debug Mode - how do I view payload as JSON?
- Mule 4 debug how to maintain history of debug statements in studio
- Error 403 forbidden accesssing Mule Release EE Repository for a licenced account
- How to update an existing object having multiple key value pairs dynamically?
- How to convert xml into a single line in DataWeave 2.0?
- Handling Negative Numbers in Hex in DataWeave
- Message remains in flight mode in anypoint mq
Related Questions in MULE-EL
- Mule 3 in Debug Mode - how do I view payload as JSON?
- Need to know how can we use below expression component in Mule 4 using DataWeave or any other method
- How to remove %20 (URI encoded space) after split function in Mule 3
- How to retrieve datetime minus 4 hours in Mule 3
- How to iterate over the fault message in Mule 4
- Getting error "unbalanced braces" in data weave in mule 3.9.3
- Inputs on converting Mule 3 expression to a Mule 4 expression
- concatenate file name and time for the file Name/pattern Mule 3
- MEL to DataWeave conversion
- Trouble converting SHA-256 hashing from Mule 3 to Mule 4
- Is there any function or dependency that can convert the month in a date to desired language in dataweave1 (mule3)?
- How to differentiate error from 2 until-successful component in a single mule flow?
- Mule 3 retrieving the placeholder value dynamically
- Custom Json Validation in anypoint studio
- I am trying to decode a Base64 format Token after retrieving it from Object store in Anypoint Studio. Help resolve the dataweave error?
Related Questions in MULE-COMPONENT
- How to handle Too Many Requests (429) error in Mule 4 Process API
- Mule 4 Getting Database Connection in Java Code
- Getting an error while trying to read mail through IMAP in mule esb 3.9
- Get excel file from CloudHub Mulesoft
- Mule Java SDK Module/Connector - java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError
- How to achieve bulk update ( contact object) to Salesforce from Mule 4 API
- How to read a Mulesoft 4 flow response in java
- how to avoid Message flowing back to same AMQ after it consumed from same queue in mule-4
- How to get size of XML message payload in KB using dataweave
- access vm queue accoss the multiple server in mulesoft
- How to isolate a Subscribe Channel Listener to only one worker
- Mock File Download in Mulesoft MUNIT test
- Mulesoft NetSuite Connector throw java.lang.NullPointerException: charsetName Error
- Getting "Remotely closed" error for HTTP POST Request In the MULE 4
- Integration and data upload - MuleSoft CloudHub to Tableau Server
Related Questions in MULE-MODULE-JPA
- Mule 3.8 application showing multiple NoSuchBeanDefinitionException during mule server starting
- conversion failed when converting date and/or time from character string in mule batch commit
- Insert parameterized query
- How can i find the mule configuration file name in the flow
- Mule: How to print the file name in logger?
- How to read plain text file in mule 3.8
- Does Mule support MySQL database connection pooling with XA transaction?
- Log File Not Found - Mule Server Installation
- get value from request header in http call -mule
- Connecting MS SQL Server with mule
- Mule returns oracle cursor issue
- Configured jetty server in mule esb
- Making call to Rest services in mule ESB
- How to read parameter in mule esb
- Installing Multiple Instances Mule ESB
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
suppose if the header name was "authToken" which contains the authentication token. it can be accessed in mule floe with below mel expression
#[message.inboundProperties.authToken]