title: Can MULE post XML-file over HTTP from local directory?
body: <p>I need to transfer XML-files over HTTP POST. Can Mule be configured to do this. I've been trying with an easy flow, inbound file --> outound HTTP but it's not working. Does anyone have any experience of this?</p>
  
  <pre><code>    &lt;flow name="rpg_uploadFlow1" doc:name="rpg_uploadFlow1"&gt;
      &lt;file:inbound-endpoint path="C:\Users\Claes\Documents\CD-utveckling\paper-rpg\OUT" moveToDirectory="C:\Users\Claes\Documents\CD-utveckling\paper-rpg\sent" responseTimeout="10000" mimeType="text/xml" doc:name="File"/&gt;
      &lt;http:outbound-endpoint exchange-pattern="one-way" host="http://XXXXXXXXXXX.ashx?SystemName=XXXX&amp;amp;UserName=XXXX&amp;amp;PassWord=XXXXX" port="80" disableTransportTransformer="true" doc:name="HTTP"/&gt;
  
  &lt;/flow&gt;
  </code></pre>
  
  <p>Error;</p>
  
  <pre><code>ERROR 2013-05-17 17:24:49,208 [[rpg_upload].connector.http.mule.default.dispatcher.07]    org.mule.exception.DefaultMessagingExceptionStrategy: 
  </code></pre>
  
  <hr>
  
  <pre><code>Message               : Failed to route event via endpoint:   DefaultOutboundEndpoint{endpointUri=http://http://xxxxxxxxxxxxxxxx/rpgtest/service.ashx?  SystemName=xxxxxxxxxxxxxxxxx&amp;UserName=xxxxxxxxxxxxxxx&amp;PassWord=xxxxxxx,  connector=HttpConnector
  {
     name=connector.http.mule.default
    lifecycle=start
    this=18b44ce0
     numberOfConcurrentTransactedReceivers=4
     createMultipleTransactedReceivers=true
     connected=true
     supportedProtocols=[http]
     serviceOverrides=&lt;none&gt;
   }
   ,       name='endpoint.http.http.xxxxxxxxxxxxxxxx.service.ashx.SystemName.xxxxx.UserName.xxxxx.Pass       Word.836749.80', mep=ONE_WAY, properties={PassWord=836749:80, SystemName=xxxxxx,      UserName=xxxxxxxxx}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=true}. Message payload is of type: ReceiverFileInputStream
      Code                  : MULE_ERROR-42999
   --------------------------------------------------------------------------------
   Exception stack is:
   1. http (java.net.UnknownHostException)
    java.net.AbstractPlainSocketImpl:-1 (null)
   2. Failed to route event via endpoint:   DefaultOutboundEndpoint{endpointUri=http://http://xxxxxxxxxx.ashx?   SystemName=xxxxxxxxxxxx&amp;UserName=xxxxxx&amp;PassWord=836749:80, connector=HttpConnector
   {
     name=connector.http.mule.default
     lifecycle=start
     this=18b44ce0       
     numberOfConcurrentTransactedReceivers=4
    createMultipleTransactedReceivers=true
     connected=true
    supportedProtocols=[http]
    serviceOverrides=&lt;none&gt;
        }
      ,        name='endpoint.http.http.xxxx.ashx.SystemName.xxxxxxxx.UserName.xxxxx.PassWord.836749.80',     mep=ONE_WAY, properties={PassWord=836749:80, SystemName=xxxxxxxxxx, UserName=xxxx},    transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0},    deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000,    endpointEncoding=UTF-8, disableTransportTransformer=true}. Message payload is of type:    ReceiverFileInputStream (org.mule.api.transport.DispatchException)
         org.mule.transport.http.HttpClientMessageDispatcher:155    (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transport/DispatchExceptio n.html)
        --------------------------------------------------------------------------------
        Root Exception stack trace:
        java.net.UnknownHostException: http
          at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
          at java.net.PlainSocketImpl.connect(Unknown Source)
  at   java.net.SocksSocketImpl.connect(Unknown Source)
  + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
  </code></pre>
  
  <hr>