M MrDavis New Member Licensed User Longtime User Jun 6, 2011 #1 Simple question - I have looked at dox and just do not understand where "http" comes from in the piece of code below. I do not see it defined or used elsewhere in the program but, I do know it will not run properly if it is changed. I know this is simple...but it is bugging the hell out of me! HttpClient1.Initialize("http")
Simple question - I have looked at dox and just do not understand where "http" comes from in the piece of code below. I do not see it defined or used elsewhere in the program but, I do know it will not run properly if it is changed. I know this is simple...but it is bugging the hell out of me! HttpClient1.Initialize("http")
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2011 #2 Very good question. It can be any string you want. This is the EventName parameter. Basic4android Search: httpclient.initialize It sets the subs that will handle the events: Code: HttpClient1.Initialize("abcd") ... Sub abcd_ResponseError (Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int) End Sub Sub abcd_ResponseSuccess (Response As HttpResponse, TaskId As Int) End Sub Upvote 0
Very good question. It can be any string you want. This is the EventName parameter. Basic4android Search: httpclient.initialize It sets the subs that will handle the events: Code: HttpClient1.Initialize("abcd") ... Sub abcd_ResponseError (Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int) End Sub Sub abcd_ResponseSuccess (Response As HttpResponse, TaskId As Int) End Sub