S Savio Azavedo Member Licensed User Longtime User Jul 29, 2013 #1 I'm using GetAsynchronously to read HTTP response. Dim file As OutputStream Response.GetAsynchronously("StringResponse",file,True,TaskId) How do I get the response in a String variable.
I'm using GetAsynchronously to read HTTP response. Dim file As OutputStream Response.GetAsynchronously("StringResponse",file,True,TaskId) How do I get the response in a String variable.
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2013 #2 You should use HttpUtils2 instead. Upvote 0
S Savio Azavedo Member Licensed User Longtime User Jul 29, 2013 #3 Thanks Erel.... do you have a sample program for HttpUtils2 Upvote 0
NJDude Expert Licensed User Longtime User Jul 29, 2013 #4 Just type "HttpUtils2" on the SEARCH box above, you'll get plenty of samples. Upvote 0
S Savio Azavedo Member Licensed User Longtime User Jul 30, 2013 #5 Thanks for that HttpUtils2 works beautifully. But i'm stuck at a point and need help or clarification. I'm trying to implement a mini dictionary by reading the search term and getting the result from the dictionary.com. I have the following code on search click Dim Job As HttpJob Job.Initialize("Keyword",Me) Job.Download("http://dictionary.reference.com/browse/" & wordBox.Text) This works fine if I search it once, however for the second search it gives me an error saying "Internal server error" Is it that every new search should be a different Job (HttpJob) ? Can I have a single Job to have multiple download URL's ? I am new to this software please help. Upvote 0
Thanks for that HttpUtils2 works beautifully. But i'm stuck at a point and need help or clarification. I'm trying to implement a mini dictionary by reading the search term and getting the result from the dictionary.com. I have the following code on search click Dim Job As HttpJob Job.Initialize("Keyword",Me) Job.Download("http://dictionary.reference.com/browse/" & wordBox.Text) This works fine if I search it once, however for the second search it gives me an error saying "Internal server error" Is it that every new search should be a different Job (HttpJob) ? Can I have a single Job to have multiple download URL's ? I am new to this software please help.
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2013 #6 Not sure that this is the cause of this issue however you should call Dim Job As HttpJob again before using the same variable. Upvote 0
Not sure that this is the cause of this issue however you should call Dim Job As HttpJob again before using the same variable.
S Savio Azavedo Member Licensed User Longtime User Aug 1, 2013 #7 Yup that's not the issue. It was returning a status code of 500, which is Web server software error and can only be resolved fixes to the server software. I'm using a different website oxforddictionaries.com and it works fine. Thanks for your help.... Upvote 0
Yup that's not the issue. It was returning a status code of 500, which is Web server software error and can only be resolved fixes to the server software. I'm using a different website oxforddictionaries.com and it works fine. Thanks for your help....