Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
request.New1("https://www.cia.gov/")
response.New1
response.Value = request.GetResponse
TextBox1.Text = response.GetString
End Sub
To be fair (unless you've found a post I have conveniently overlookedI'm a bit surprised because when i asked last time Andrew answered, this needs to be done separately via door lib etc.
But later replied to a post here http://www.b4x.com/forum/questions-help-needed/3478-no-sslstream-net-compact-framework.htmlAbout Https I have no idea as it it not part of my skill-set
... WM5.0 and later supports SSL over HTTP by just changing URLs to start with "https://" but "your Web server must have an X.509 server certificate which is used to authenticate the Web server ...". ... So it looks like it should also work through the HTTP libary though it may need a bit of intervention with the Door library... as this is not one of my areas of expertise.
request.New1("https://www.google.com")
msgbox(request.DllVersion)
Certificate.New1
Certificate.Run
I've attached a small library + source that allow you to accept all certificates.
Copy both files to Basic4ppc libraries folder.
To use it you should add a CertificatePolicy object (which I named Certificate in my example) and add the following lines under sub App_start:
Error compiling program.
Error message: Unknown control type.Use Control("_main_certificate",Type)instead.
Line number: 1173
Line: Certificate.New1
Nothing, it's a compiler warning that it wants to confirm the type of the object. Just do the edit as it advises. There's a bit about it in Main Help->Keywords->Runtime Control Manipulation->ControlWhat's wrong here ?
Nothing, it's a compiler warning that it wants to confirm the type of the object.
Just do the edit as it advises. There's a bit about it in Main Help->Keywords->Runtime Control Manipulation->Control
Edit:- The type it wants is probably CertificatePolicy
The compiler message is telling you to edit your source code at line 1173 toThere's nothing i can confirm..only ok for closing the message.
It wants to know the type of the "control". Control here is a synonym for your library object which is treated as a control in many respects within Basic4ppc.Error compiling program.
Error message: Unknown control type.Use Control("_main_certificate",Type)instead.
Line number: 1173
Line: Certificate.New1
1. Did you add a reference to CertificatePolicy.dll?
2. Did you add (tools -> Add object) an object named Certificate of that type?
That wasn't really what I meant but as I was totally wrong anyway it doesn't matter.On Andrews advise, i deleted and recreated them with the name CertificatePolicy.New1 / Run , which did not solve the issue
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?