F FrankR Member Licensed User Longtime User Mar 5, 2011 #1 I have to send a request via HTTP, get the response, and parse it. The response will be a List of text, probably delimited with newlines. What would be the recommended best way to do this? Do we have methods to parse via a newline?
I have to send a request via HTTP, get the response, and parse it. The response will be a List of text, probably delimited with newlines. What would be the recommended best way to do this? Do we have methods to parse via a newline?
peacemaker Expert Licensed User Longtime User Mar 5, 2011 #2 Use HTTP sample here, it's enough. After getting RESPONSE you have to search each token you need to recognize it like a info\command... I'm doing the same task now. Suggestion - think about the charset of the parsing text, if any encoding planned. Upvote 0
Use HTTP sample here, it's enough. After getting RESPONSE you have to search each token you need to recognize it like a info\command... I'm doing the same task now. Suggestion - think about the charset of the parsing text, if any encoding planned.
F FrankR Member Licensed User Longtime User Mar 5, 2011 #3 I understand the sample completely. What I'm really asking is: what parsing abilities exist in B4a? Especially parsing of lines into a list / array. Upvote 0
I understand the sample completely. What I'm really asking is: what parsing abilities exist in B4a? Especially parsing of lines into a list / array.
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2011 #4 See File.ReadList or TextReader.ReadList. Upvote 0