I have a procedure in my DataSnap server that is triggered by a GET request and receives a single string parameter, but whenever the client sends a string value composed of any amount of zeros followed by any amount of numbers (i.e. 01, 002, 0047, etc), somehow the leading zeros are cut off, and I need those too.
I’ve been debugging Delphi hard trying to find where this happens, and if it happens server-side, but I haven’t come across anything. Any ideas?
Problem solved, the request that my client was making was somehow automagically being converted to integer whenever it “looked like” an integer, so now the value is being requested beween quotation marks so that it is converted to string, the way it should.
I feel kinda stupid for making such a big deal out of this.