I'm trying to redirect HTTP GET requests to a seperate web server. I could not find any example code. I configured mule.xml as below. I think there must be a better way than this. Any ideas? thanks.
<flow name="sampleInsert" doc:name="sampleInsert">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" responseTimeout="1" doc:name="HTTP" path="indb/sampleInsert" >
</http:inbound-endpoint>
<logger level="INFO" doc:name="Logger" message="In Time #[server.dateTime]"/>
<logger level="INFO" doc:name="Logger" message="Out Time #[server.dateTime]"/>
<http:outbound-endpoint address="http://www.mulesoft.org/" doc:name="HTTP" exchange-pattern="request-response" followRedirects="true" method="GET"/>
</flow>