Hi!
I have tried the httputils2 and the b4azxing modules to scan ean's and resolve the names of the products by web-database.
the job starts with this:
Job1.Download2("http://www.ean-search.org/perl/ean-search.pl", Array As String("q", lblEAN.Text))
the label "lblEAN" contains the valid ean-code. If i run this i get a "not found" error, but if i open the complete link in a normal browser, i get the rigth answer.
The jobdone looks in moment like this:
Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success=True Then
Dim result As String
result=Job.Getstring
Dim i1 As Int
i1=result.IndexOf(lblEAN.Text)
Msgbox(i1,"")
Else
Msgbox(Job.ErrorMessage,"FEHLER")
End If
End Sub
What i am doing wrong? Is that the right way to get the result-page into a string?
best regards
Hagen
I have tried the httputils2 and the b4azxing modules to scan ean's and resolve the names of the products by web-database.
the job starts with this:
Job1.Download2("http://www.ean-search.org/perl/ean-search.pl", Array As String("q", lblEAN.Text))
the label "lblEAN" contains the valid ean-code. If i run this i get a "not found" error, but if i open the complete link in a normal browser, i get the rigth answer.
The jobdone looks in moment like this:
Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success=True Then
Dim result As String
result=Job.Getstring
Dim i1 As Int
i1=result.IndexOf(lblEAN.Text)
Msgbox(i1,"")
Else
Msgbox(Job.ErrorMessage,"FEHLER")
End If
End Sub
What i am doing wrong? Is that the right way to get the result-page into a string?
best regards
Hagen