locked
Web service URL contains & in parameter not responding RRS feed

  • Question

  • User719557214 posted

    Hi ,

    I have created a web service in which i am passing parameters which contains &.But my we service call fails. Due to & i between a parameter.

    Please suggest me a way how to send parameter which contains & .

    Friday, August 30, 2013 4:44 AM

Answers

  • User-488622176 posted

    Try URL encoding your text. The & symbol will be replaced by %26. See http://www.degraeve.com/reference/urlencoding.php for all chars.

    &              %26
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 30, 2013 5:57 AM
  • User260886948 posted

    Hi,

    As @IIIeris said, please try to replace the & as %26.

    When those special characters as #,@,:,& are in URLs, then they have to be hex encoded.

    So if you want to use like this URL: http://sd$sd.com , then you should change your url as following: http://sd%26sd.com .

    Best Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 1, 2013 10:06 PM

All replies

  • User-488622176 posted

    Try URL encoding your text. The & symbol will be replaced by %26. See http://www.degraeve.com/reference/urlencoding.php for all chars.

    &              %26
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 30, 2013 5:57 AM
  • User260886948 posted

    Hi,

    As @IIIeris said, please try to replace the & as %26.

    When those special characters as #,@,:,& are in URLs, then they have to be hex encoded.

    So if you want to use like this URL: http://sd$sd.com , then you should change your url as following: http://sd%26sd.com .

    Best Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 1, 2013 10:06 PM