.:: Jasa Membuat Aplikasi Website,Desktop,Android Order Now..!! | | Order Now..!! Jasa Membuat Project Arduino,Robotic,Print 3D ::.

VB.NET :: WebServer ActiveX Control (HTTP, HTTPS)

0 komentar


بِسْــــــــــــــــمِ اﷲِالرَّحْمَنِ اارَّحِيم
bismillaahirrahmaanirrahiim

السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ
Assalamu'alaikum warahmatullahi wabarakatuh

WebServer ActiveX Control (HTTP, HTTPS)

Use the WebServer control to turn any application into a custom HTTP Web Server. Build Web Applications in a familiar software environment. Features include:
  • Allows you to create a server side web application without having to learn ASP, Cold Fusion or other web application development environment.
  • Give a web interface to any stand-alone application.
  • Compatible with MS SOAP library (create a SOAP server).
  • Supports HTTPS.

Development Environments

  • Visual Studio .NET (.NET Framework)
  • Visual Basic (VB)
  • Visual C++ (VC++)
  • FoxPro
  • PowerBuilder
  • Delphi
  • C++ Builder
  • Office 97/2000

Interface


Public Constructors
WebServerBuild web-based applications from within Visual Basic or any other development environment that supports ActiveXcontrols.
Public Properties
CertificateCertificate Object to use when authenticating to the remote host.
ClientAuthenticationApplies to server operation only.
CountNumber of nonsecure TCP connections currently open.
DefaultFilesCollection of default filenames.
LocalAddressReturns the address in use while the Daemon is active and an empty string when the Daemon socket is closed.
LocalPortReturns the port number in use while the Daemon is active and 0 when the Daemon is closed.
LocalSecureAddressReturns the local host address being used for accepting secure connections. The format is dot notation (for example, nnn.nnn.nnn.nnn). A non-empty value indicates the WebServer Control is accepting secure HTTP requests.
LocalSecurePortReturns the port number being used for accepting secure connections. A non-zero value indicates the WebServer Control is accepting secure HTTP requests.
LogDirectoryDirectory for daily log files. The default value is an empty string.
MaxIdleTimeAmount of time a session can remain idle before expiring.
MaxMemBufferMaximum number of memory bytes used when receiving the body of a request.
PlaceCookiesControls whether cookies are sent. Only affects the automatic Dart Cookies.
ProtocolSpecifies the security protocol used.
PutLengthControls whether the Content-Length is inserted in the header.
RootDirectoryRoot directory for web pages.
SecureCountNumber of secure connections currently open.
SessionsCollection of active Session Objects.
UseTempGets or sets whether or not to place uploaded files in the temp directory.
Public Methods
AboutShow the About Box.
PauseStop the server from accepting new connections, while allowing established connections and sessions to persist.
StartStart processing HTTP/HTTPS requests.
StopStop the server from accepting new connections and immediately close existing client connections.
TraceStart or stop the accumulation of trace or debug data. Once started, this method accumulates data until it is turned off.
Public Events
AuthenticateFires when the remote host has sent a certificate to be authenticated.
ErrorFires whenever an error condition occurs.
GetFires when a GET request is received. By default, file information and content is sent back to the client. Place code within this event to modify the default response.
HeadFires when a HEAD request is received. By default, header information is sent back to the client. Place code within this event to modify the default response.
PostFires when a POST request is received. By default, a status of "Forbidden" is returned. Place code within this event to modify the default response.
PutFires when a PUT request is received. By default, a status of "Forbidden" is returned. Place code within this event to modify the default response.
RequestFires when an unknown request is received.
SessionEndFires before a session is destroyed.
SessionInitFires after a new session is created.

Code Example

How easy is the WebServer control to use? Check out the following VB example below, which demonstrates "starting" a webserver, then responding to an HTTP GET request (which causes the WebServer component's Get event to fire).
Private Sub Command1_Click()
On Error GoTo OnError ' use intrinsic error handling

' Start a non-secure server on port 8080
WebServer1.Start 8080, -1
Exit Sub

OnError: ' Any error jumps here
Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description
End Sub


Private Sub WebServer1_Get(ByVal Session As DartWebServerCtl.ISession,_
ByVal Request As DartWebServerCtl.IRequest,_
ByVal Response As DartWebServerCtl.IResponse)
On Error GoTo OnError ' use intrinsic error handling

Response.Header(httpServer) = "My Web Server/1.0"
' Add other headers here.

If Response.Status = httpOK Then
' found template page...
Else
' page not found: return default error page
End If
Exit Sub
OnError: ' Any error jumps here
Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description
End Sub

Update Contact :
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email : Fajarudinsidik@gmail.com
NB :: Bila Sobat tertarik Ingin membuat software, membeli software, membeli source code, membeli hardware elektronika untuk kepentingan Perusahaan maupun Tugas Akhir (TA/SKRIPSI), Insyaallah Saya siap membantu, untuk Respon Cepat dapat menghubungi kami, melalui :

No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email: Fajarudinsidik@gmail.com


atau Kirimkan Private messanger melalui email dengan klik tombol order dibawah ini :

ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِين
Alhamdulilah hirobil alamin

وَ السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ
wassalamualaikum warahmatullahi wabarakatuh


Artikel VB.NET :: WebServer ActiveX Control (HTTP, HTTPS), Diterbitkan oleh scodeaplikasi pada Sabtu, 27 Agustus 2016. Semoga artikel ini dapat menambah wawasan Anda. Website ini dipost dari beberapa sumber, bisa cek disini sumber, Sobat diperbolehkan mengcopy paste / menyebar luaskan artikel ini, karena segala yang dipost di public adalah milik public. Bila Sobat tertarik Ingin membuat software, membeli software, membeli source code ,Dengan Cara menghubungi saya Ke Email: Fajarudinsidik@gmail.com, atau No Hp/WA : (fajar) : 085369237896, (puat) : 085267792168.

Tawk.to