How to read data from GetAsynchronously to a string

Savio Azavedo

Member
Licensed User
Longtime User
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.
 

Savio Azavedo

Member
Licensed User
Longtime User
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

Savio Azavedo

Member
Licensed User
Longtime User
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
Top