webMethods

webMethods

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
  • 1.  Http get URL having french/special character

    Posted Fri October 01, 2021 03:46 AM

    What product/components do you use and which version/fix level?

    IS_10.5_Core_Fix8
    IS_10.5_SPM_Fix7

    What are trying to achieve? Please describe in detail.

    We are trying to download file from customer using Get method. The Http url framed is having file name which has special character/french character in it and because of which request is not reaching customer.
    When we try with file name without special character/french character , we are able to download content.

    I have tried using URLEncode service but no luck

    Do you get any error messages? Please provide a full error message screenshot and log file.

    We just receive 400 bad request. And could see that request not reaching the customer.


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Http get URL having french/special character

    Posted Fri October 01, 2021 04:29 AM

    I just read the part where you say that you’ve tried URLEncode already.

    Can you share your sanitized URL?
    Have you checked if the target system is able to handle an encoded URL?
    Have you set the right Content Type and Encoding?

    Have you tried encoding the special character(s), before the request goes out?
    Ascii table for French Canadian charset (CP863) - Ascii-Codes

    Built-in Service - pub.string:URLEncode

    image

    KM


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Http get URL having french/special character

    Posted Fri October 01, 2021 06:59 AM

    Hi Kasi Mugada,
    Thanks for reply.
    Can you please confirm what header we can add for this encoding.
    The URL looks like below:
    OFR/troubleTicket//attachment/Capture d’écran.png/file


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Http get URL having french/special character

    Posted Fri October 01, 2021 07:19 AM

    Can you try Accept-Charset:utf-8 and/or Content-Type:application/json; charset=utf-8?
    Perhaps you can use Postman to test this out before transferring to your code.

    KM


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Http get URL having french/special character

    Posted Mon October 04, 2021 04:42 AM

    Hi @Monica_Sheshanarayana
    A few additional questions,

    1. Are you using any built in services such as pub.client:http to call the target service? please provide details or inputs passed to the service that is trying to download the file , or alternate means.
    2. Please try setting the Logging Level for HTTP related facilities in the Settings->Logging - server logger to trace and check if there are more details in the server logs in addition to just 400 bad request.
      Would also be interesting to check the exact URL that is being requested in the logs.
    3. I would agree with @Venkata_Kasi_Viswanath_Mugada1 about testing the headers in the Postman / any other client.

    -NP


    #webMethods
    #Integration-Server-and-ESB