SlideShare a Scribd company logo
Mulesoft
HTTP Connector
THARUN YADAV
Agenda
 Introduction
• Ways it works
 HTTP Listener
 HTTP Requester
• Sample Use Case
• Conclusion
About
The HTTP connector can send and receive HTTP and HTTPS requests given a
selected host, port and address.
Depending on your needs, you can either:
 Listen for HTTP requests
 Send HTTP requests
Through additional configuration, the connector allows you to:
 Use TLS encryption to send or receive HTTPS requests
 Send Authenticated Requests, via Basic Authentication, Digest and OAuth
Ways it works
In Studio, the HTTP connector can work in one of two ways,
depending on where it’s placed in a flow:
 As an HTTP Listener
 As an HTTP Requester
As HTTP Listener
To instantiate the connector as an HTTP listener connector,
you must place it onto a blank Anypoint Studio canvas into
the Source section of a new flow (i.e. as the first element in the
flow) as you design your Mule application:
As HTTP Requester
To instantiate the connector as an HTTP request connector,
you must place it into the Process section of a flow (i.e. :
anywhere except the beginning of it):
Sample Use Case
So now, we will see how http connector works as a listener:
Continue…
Step 1: Create a new flow httpconndemoFlow as directed
below:
Continue…
Step 2: Configure http listener of httpconndemoFlow for GET
method as:
Continue…
Step 3: Add a set payload transformer and a logger just after
it
Value:
#['This is a sample payload']
Message:
#['LOGGER_MSG- '+message.payload]
Continue…
Resulting XML config would be:
Continue…
Now, we let’s start testing in browser
Corresponding logger message in console:
Conclusion
So this way we have seen how http connector works as a listener,
Similarly http requester can be configured and be used.
HTTP listener can be configured for different HTTP methods-
GET, POST, etc.
Thank you!

More Related Content

Similar to Mulesofthttpconnector

Mearn Stack Web Development(Http Presentation)
Mearn Stack Web Development(Http Presentation)Mearn Stack Web Development(Http Presentation)
Mearn Stack Web Development(Http Presentation)
VASUOFFICIAL
 
Hypertex transfer protocol
Hypertex transfer protocolHypertex transfer protocol
Hypertex transfer protocol
wanangwa234
 
Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014
Navaneethan Naveen
 
internet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcainternet programming and java notes 5th sem mca
internet programming and java notes 5th sem mca
Renu Thakur
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
Rajan Pandey
 

Similar to Mulesofthttpconnector (20)

Web Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting StartedWeb Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting Started
 
http presentation 1.pptx
http presentation 1.pptxhttp presentation 1.pptx
http presentation 1.pptx
 
HTTP
HTTPHTTP
HTTP
 
Mearn Stack Web Development(Http Presentation)
Mearn Stack Web Development(Http Presentation)Mearn Stack Web Development(Http Presentation)
Mearn Stack Web Development(Http Presentation)
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
 
Http
HttpHttp
Http
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Rest WebAPI with OData
Rest WebAPI with ODataRest WebAPI with OData
Rest WebAPI with OData
 
Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
 
Mule - HTTP Listener
Mule - HTTP ListenerMule - HTTP Listener
Mule - HTTP Listener
 
Lecture 6- http
Lecture  6- httpLecture  6- http
Lecture 6- http
 
Hypertex transfer protocol
Hypertex transfer protocolHypertex transfer protocol
Hypertex transfer protocol
 
Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
 
internet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcainternet programming and java notes 5th sem mca
internet programming and java notes 5th sem mca
 
Http smuggling 1 200523064027
Http smuggling 1 200523064027Http smuggling 1 200523064027
Http smuggling 1 200523064027
 
HTTP Request Smuggling
HTTP Request SmugglingHTTP Request Smuggling
HTTP Request Smuggling
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02
 

Recently uploaded

Recently uploaded (20)

How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
 
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
 
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfBreaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
 
How To Build a Successful SaaS Design.pdf
How To Build a Successful SaaS Design.pdfHow To Build a Successful SaaS Design.pdf
How To Build a Successful SaaS Design.pdf
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
10 Essential Software Testing Tools You Need to Know About.pdf
10 Essential Software Testing Tools You Need to Know About.pdf10 Essential Software Testing Tools You Need to Know About.pdf
10 Essential Software Testing Tools You Need to Know About.pdf
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
INGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by DesignINGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by Design
 
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product UpdatesGraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
 

Mulesofthttpconnector

  • 2. Agenda  Introduction • Ways it works  HTTP Listener  HTTP Requester • Sample Use Case • Conclusion
  • 3. About The HTTP connector can send and receive HTTP and HTTPS requests given a selected host, port and address. Depending on your needs, you can either:  Listen for HTTP requests  Send HTTP requests Through additional configuration, the connector allows you to:  Use TLS encryption to send or receive HTTPS requests  Send Authenticated Requests, via Basic Authentication, Digest and OAuth
  • 4. Ways it works In Studio, the HTTP connector can work in one of two ways, depending on where it’s placed in a flow:  As an HTTP Listener  As an HTTP Requester
  • 5. As HTTP Listener To instantiate the connector as an HTTP listener connector, you must place it onto a blank Anypoint Studio canvas into the Source section of a new flow (i.e. as the first element in the flow) as you design your Mule application:
  • 6. As HTTP Requester To instantiate the connector as an HTTP request connector, you must place it into the Process section of a flow (i.e. : anywhere except the beginning of it):
  • 7. Sample Use Case So now, we will see how http connector works as a listener:
  • 8. Continue… Step 1: Create a new flow httpconndemoFlow as directed below:
  • 9. Continue… Step 2: Configure http listener of httpconndemoFlow for GET method as:
  • 10. Continue… Step 3: Add a set payload transformer and a logger just after it Value: #['This is a sample payload'] Message: #['LOGGER_MSG- '+message.payload]
  • 12. Continue… Now, we let’s start testing in browser Corresponding logger message in console:
  • 13. Conclusion So this way we have seen how http connector works as a listener, Similarly http requester can be configured and be used. HTTP listener can be configured for different HTTP methods- GET, POST, etc.