IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

http post request- Windows vs UNIX CRLF issue

  • 1.  http post request- Windows vs UNIX CRLF issue

    Posted Wed May 07, 2014 04:53 AM

    Hi,
    I am sending http post request as String data to remote server(which is on UNIX).
    Remote server receives my request but as an one line String.
    But the remote webservice expects CRLF in some lines, which I am sending while forming input String to http client.

    The body of http request is like -

    -----------------------------7d924f5b0464
    Content-Disposition: form-data;name=“USER”
    content-type: text/plain

    XXXXXX
    -----------------------------7d924f5b0464
    Content-Disposition: form-data;name=“PASSWORD”
    content-type: text/plain

    XXXXXXX

    =========================================================

    But in server side they found only LF(0A) and not CRLF(0D0A)

    I tried forming String using java service(lineSeparator). “\n”, “\r” - but failing
    500 Internal server Error.

    if someone can give different thoughts, it will be great help.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB