Http on device

micro

Well-Known Member
Licensed User
Longtime User
Hi
I put a module on google document with a single field , and update the content of this with this string

"http://spreadsheets.google.com/formResponse?formkey=dDZQTGVEYXRKMTJ4YWh5LTl6ZUpJTHc6MQ&ifq&entry.0.single=" & str & "&submit=Submit"

Where str = the value.
Follows a simple example:
B4X:
Dim str_URL as String
Dim str as String
str = 12345
str_URL = "http://spreadsheets.google.com/formResponse?formkey=dDZQTGVEYXRKMTJ4YWh5LTl6ZUpJTHc6MQ&ifq&entry.0.single=" & str & "&submit=Submit"
...............
GetText
..............
Sub GetText
     Request.New1(str_URL)
     Response.New1
     Response.Value = Request.GetResponse
     String = Response.GetString
     Response.Close
     If SubString(String, 176, 9) = ">Grazie!<" Then
         Return True
     Else
         Return False
     End If
End Sub

On the PC work fine but on the device get this error:
Response code: -1
TrustFailure

Why?

Thanks
 

micro

Well-Known Member
Licensed User
Longtime User
:sign0098:
ok, I solved whit Certificatepolicy.dll

Best Regards
 

kustg

Member
Licensed User
Hi, Micro,
i know it's a long time ago, but do you remember how you solved the problem....
I get the same error.
Thanks
Kustg
 
Top