KB Article #178913

How to setup HTTP POST in B2Bi

Problem

you're trying to setup HTTP POST connection to an external, but you cannot find how to do it.

Resolution

- The AS2 transfer is doing HTTP post(by default).

- If you setup AS2 on debug mode:

2017-06-13 14:48:47,809 - DEBUG [Worker47-3706] (HttpClientBase.<init>:125) - Created HTTP client for: 10.151.57.168

2017-06-13 14:48:47,820 - DEBUG [Worker47-3706] (HttpClientFactory.createHttpClient:87) - Using HttpClientImpl as HttpClient

2017-06-13 14:48:47,820 - DEBUG [Worker47-3706] (HttpClientBase.connectDirect:225) - Connecting to HTTP server /10.151.57.168:4081 via direct connect

2017-06-13 14:48:47,821 - DEBUG [Worker47-3706] (HttpClientBase.send:323) - Send entered with URL=http://10.151.57.168:4081/exchange/as2_2

2017-06-13 14:48:47,822 - DEBUG [Worker47-3706] (HttpClientBase.sendPostRequest:426) - Sending HTTP POST request

2017-06-13 14:48:47,823 - DEBUG [Worker47-3706] (HttpClientBase.getHeaders:511) - Ignoring Content-Length header included in data passed to HTTP client; this header should only be added by the HTTP client