Pass data with Space in Rest API
2020-05-19
We are trying to push data into our database using REST API, but the code has spaces in the values. We have tried UrlEncode method suggested by your team, which is given in the following message.

https://forum.hansaworld.com/eng/StandardERPForum/viewmessage/5102/8353668

Still it didn't work. Please advise on how we can go about it, below is the code;

curl -X POST 'http://test:9Series@197.248.85.2:1080/api/1/ORVc?set_field.CustOrdNr=test2033&set_field.OrderClass=LOC&set_field.SerNr=1540000013&set_field.OrdDate=2020-04-23&set_field.CustCode=10271&set_field.ShipAddr0=GUSII MATT&set_field.ShipAddr1=P.O.BOX 3069&set_field.ShipAddr2=KISII&set_field.ShipAddr3=KENYA&set_field.InvAddr0=GUSII MATT&set_field.InvAddr1=P.O.BOX 3069&set_field.InvAddr2=KISII&set_field.InvAddr3=KENYA&set_field.DespatchDate=2020-04-23&set_field.PlanShipDate=2020-04-23&set_field.OrderType=Normal&set_field.CurncyCode=KSHS&set_row_field.0.ArtCode=TPG01088&set_row_field.0.Quant=240&set_row_field.0.Price=375.00'
Hector Parada
2020-05-29
Hello,

Our team has been on separate communication with you regarding this.


A normal space should work. If not, you might have to urlencode it
E.g. UrlEncode(sometext)

Also if the spaces does not work have you tried to replace it with a %20


Where are you with this?Did you still need assistance?
Hector Parada
2020-06-29
Hello,

Please remember if the spaces does not work have you tried to replace it with a: %20

If you continue to have issues feel free to reopen the question

Best Regards
该话题已关闭,无法再评论。请新建话题。
返回到列表
最新留言
Hi there, There is currently no GUI client for Linux. Only a server version is available. Than...
17:35 3 九月 2025
Hi, When I add a labour service item (cost 10 per Hr) to production, the NL posting is incorrect....
08:10 19 八月 2025

我们在正常工作时间对论坛进行维护,旨在24小时内回复所有问题

您可以通过选择主题列表右上角的 "星星 "图标来订阅本论坛的任何帖子的通知。你必须登录后才能使用这一功能。