473,750 Members | 2,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpWebRequest and posting login data

Dear ASP.NET Programmers,

How can I post data to an ASP.NET login page and pass authentication? The
login page uses forms
authentication, users must supply usernames and password and have to click
on a submit button. I
want to automate this process by supplying values with HttpWebRequest and
then download a file on
the site. I think that I cannot invoke the submit button. Pleeeasee help,
thanks in advance

Dim myWebReq As HttpWebRequest
Dim myWebResp As HttpWebResponse
Dim encoding As New System.Text.ASC IIEncoding()
Dim postData As String
Dim data() As Byte
Dim sr As StreamReader
Dim sw As StreamWriter

postData += "txtUsernam e=b"
postData += "&"
postData += "txtPasswor d=k"
data = encoding.GetByt es(postData)
myWebReq =
WebRequest.Crea te("http://burak/database/medicalDocs/F325_fittoflyre port.asp
x")
myWebReq.Method = "POST"
myWebReq.Conten tType = "applicatio n/x-www-form-urlencoded"
myWebReq.Conten tLength = data.Length
Dim myStream As Stream = myWebReq.GetReq uestStream()
myStream.Write( data, 0, data.Length)
myStream.Close( )
myWebResp = myWebReq.GetRes ponse
sr = New StreamReader(my WebResp.GetResp onseStream)
Dim strHTML As String = sr.ReadToEnd
sw = File.CreateText ("d:\Downloads\ 1.htm")
sw.WriteLine(st rHTML)
sw.Close()
Response.WriteF ile("d:\Downloa ds\1.htm")
Nov 17 '05 #1
9 3585
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
Dear ASP.NET Programmers,

How can I post data to an ASP.NET login page and pass authentication? The
login page uses forms
authentication, users must supply usernames and password and have to click
on a submit button. I
want to automate this process by supplying values with HttpWebRequest and
then download a file on
the site. I think that I cannot invoke the submit button. Pleeeasee help,
thanks in advance


I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have to
do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx
2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page.
3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page
Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with
the protected page.

This is what your code will need to duplicate.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #2
I am using following code but for no good. Maybe you can help me on this...

On the logindeneme.asp x page

Private Sub btnValidate_Cli ck(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnValidate.Cli ck
If FormsAuthentica tion.Authentica te(txtUsername. Text,
txtPassword.Tex t) Then
Dim tkt As FormsAuthentica tionTicket
Dim cookiestr As String
Dim ck As HttpCookie

tkt = New FormsAuthentica tionTicket(txtU sername.Text, False,
120)
cookiestr = FormsAuthentica tion.Encrypt(tk t)
Session.Add("c" , cookiestr)
ck = New HttpCookie(Form sAuthentication .FormsCookieNam e(),
cookiestr)
Response.Cookie s.Add(ck)

Dim strRedirect As String
strRedirect = Request("Return URL")
If strRedirect <> "" Then
Response.Redire ct(strRedirect, True)
Else
strRedirect = "logindeneme.as px"
Response.Redire ct(strRedirect, True)
End If
Else
lblMessage.Text = "Invalid username/password"
End If
End Sub

and then in the page where I am requesting the page to be downloaded..

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim myWebReq As HttpWebRequest
Dim myWebResp As HttpWebResponse
Dim strHTML As String
Dim c As New Cookie()
Dim sr As StreamReader
Dim sw As StreamWriter
Dim cc As New CookieContainer ()

myWebReq = WebRequest.Crea te("http://burak/LoginDeneme/secret.aspx")
c.Name = FormsAuthentica tion.FormsCooki eName()
c.Value = Session("c")
c.Domain = "http://burak/LoginDeneme"
cc.Add(c)
myWebReq.Cookie Container = cc
myWebResp = myWebReq.GetRes ponse
sr = New StreamReader(my WebResp.GetResp onseStream)
strHTML = sr.ReadToEnd
sw = File.CreateText ("d:\Downloads\ 1.htm")
sw.WriteLine(st rHTML)
sw.Close()
Response.WriteF ile("d:\Downloa ds\1.htm")
End Sub

What am I missing? Thank you very much for your help..

buran
"John Saunders" <jo***********@ surfcontrol.com > wrote in message
news:es******** *****@TK2MSFTNG P12.phx.gbl...
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
Dear ASP.NET Programmers,

How can I post data to an ASP.NET login page and pass authentication? The login page uses forms
authentication, users must supply usernames and password and have to click on a submit button. I
want to automate this process by supplying values with HttpWebRequest and then download a file on
the site. I think that I cannot invoke the submit button. Pleeeasee help, thanks in advance
I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have

to do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx 2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page.
3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with
the protected page.

This is what your code will need to duplicate.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com

Nov 17 '05 #3
I am using following code but for no good. Maybe you can help me on this...

On the logindeneme.asp x page

Private Sub btnValidate_Cli ck(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnValidate.Cli ck
If FormsAuthentica tion.Authentica te(txtUsername. Text,
txtPassword.Tex t) Then
Dim tkt As FormsAuthentica tionTicket
Dim cookiestr As String
Dim ck As HttpCookie

tkt = New FormsAuthentica tionTicket(txtU sername.Text, False,
120)
cookiestr = FormsAuthentica tion.Encrypt(tk t)
Session.Add("c" , cookiestr)
ck = New HttpCookie(Form sAuthentication .FormsCookieNam e(),
cookiestr)
Response.Cookie s.Add(ck)

Dim strRedirect As String
strRedirect = Request("Return URL")
If strRedirect <> "" Then
Response.Redire ct(strRedirect, True)
Else
strRedirect = "logindeneme.as px"
Response.Redire ct(strRedirect, True)
End If
Else
lblMessage.Text = "Invalid username/password"
End If
End Sub

and then in the page where I am requesting the page to be downloaded..

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim myWebReq As HttpWebRequest
Dim myWebResp As HttpWebResponse
Dim strHTML As String
Dim c As New Cookie()
Dim sr As StreamReader
Dim sw As StreamWriter
Dim cc As New CookieContainer ()

myWebReq = WebRequest.Crea te("http://burak/LoginDeneme/secret.aspx")
c.Name = FormsAuthentica tion.FormsCooki eName()
c.Value = Session("c")
c.Domain = "http://burak/LoginDeneme"
cc.Add(c)
myWebReq.Cookie Container = cc
myWebResp = myWebReq.GetRes ponse
sr = New StreamReader(my WebResp.GetResp onseStream)
strHTML = sr.ReadToEnd
sw = File.CreateText ("d:\Downloads\ 1.htm")
sw.WriteLine(st rHTML)
sw.Close()
Response.WriteF ile("d:\Downloa ds\1.htm")
End Sub

What am I missing? Thank you very much for your help..

buran
"John Saunders" <jo***********@ surfcontrol.com > wrote in message
news:es******** *****@TK2MSFTNG P12.phx.gbl...
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
Dear ASP.NET Programmers,

How can I post data to an ASP.NET login page and pass authentication? The login page uses forms
authentication, users must supply usernames and password and have to click on a submit button. I
want to automate this process by supplying values with HttpWebRequest and then download a file on
the site. I think that I cannot invoke the submit button. Pleeeasee help, thanks in advance
I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have

to do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx 2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page.
3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with
the protected page.

This is what your code will need to duplicate.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com


Nov 17 '05 #4
"buran" <bu***@buran.co m> wrote in message
news:e7******** ******@TK2MSFTN GP11.phx.gbl...
I am using following code but for no good. Maybe you can help me on this...

Please tell us what you mean when you say "but for no good". What is the
specific problem? Perhaps an exception is thrown? Perhaps there is a
timeout? Please be more specific.

.... and then in the page where I am requesting the page to be downloaded..

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
myWebReq = WebRequest.Crea te("http://burak/LoginDeneme/secret.aspx") c.Name = FormsAuthentica tion.FormsCooki eName()
c.Value = Session("c")
c.Domain = "http://burak/LoginDeneme"
cc.Add(c)


http://burak/LoginDeneme is not a domain. "burak" is a domain. Please try
that, and if it doesn't work, let us know in detail what the result is.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #5

"John Saunders" <jo***********@ surfcontrol.com > wrote in message
news:O1******** ******@tk2msftn gp13.phx.gbl...
"buran" <bu***@buran.co m> wrote in message
news:e7******** ******@TK2MSFTN GP11.phx.gbl...
I am using following code but for no good. Maybe you can help me on this...

Please tell us what you mean when you say "but for no good". What is the
specific problem? Perhaps an exception is thrown? Perhaps there is a
timeout? Please be more specific.


Ok you're right. I am getting the login page
(http://burak/LoginDeneme/LoginDeneme.aspx) on the browser instead of the
the http://burak/LoginDeneme/al.aspx.
So the code writes the contents of the login page to the disk
(d:\Downloads\1 .htm). It cannot pass the authentication.

Yeesss, changing to c.Domain = "burak" worked. Thank you very very much..
:))

...
and then in the page where I am requesting the page to be downloaded..

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
myWebReq = WebRequest.Crea te("http://burak/LoginDeneme/secret.aspx")
c.Name = FormsAuthentica tion.FormsCooki eName()
c.Value = Session("c")
c.Domain = "http://burak/LoginDeneme"
cc.Add(c)


http://burak/LoginDeneme is not a domain. "burak" is a domain. Please try
that, and if it doesn't work, let us know in detail what the result is.


--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com

Nov 17 '05 #6
"John Saunders" <jo***********@ surfcontrol.com > wrote in message news:<es******* ******@TK2MSFTN GP12.phx.gbl>.. .
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...

I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have to
do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx
2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page.
3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page
Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with
the protected page.

This is what your code will need to duplicate.


Okay, I understand the steps.... but I have been unable to perform
them.

When I try to post my userid and password to my login.aspx page, I
keep getting the html for the login page back. I assume that this is
because I do nto successfully login. There are only 3 fields on the
login page __viewstate, userid, and password. The login screen is
using "forms" authentication.

I have scoured the web looking for a simple example of this type of
login, but have not been successful.

Once logged in, I realize that I need to grab the auth cookie and use
it on future requests of pages.

I am really surprised that I can not find an example of this. Is it so
simple that everyone else is able to do it without problems.... or am
I missing something.

Please help.

Thanks.
Nov 17 '05 #7
"Jim J" <do**********@h otmail.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
"John Saunders" <jo***********@ surfcontrol.com > wrote in message

news:<es******* ******@TK2MSFTN GP12.phx.gbl>.. .
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...

I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have to do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx 2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page. 3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with the protected page.

This is what your code will need to duplicate.


Okay, I understand the steps.... but I have been unable to perform
them.

When I try to post my userid and password to my login.aspx page, I
keep getting the html for the login page back. I assume that this is
because I do nto successfully login.


Jim, you know what they say about assumptions...

What happens if you assume that your assumption is incorrect, since that
seems to be the case?
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #8
"John Saunders" <jo***********@ surfcontrol.com > wrote in message news:<es******* ******@TK2MSFTN GP12.phx.gbl>.. .
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...

I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have to
do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx
2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page.
3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page
Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with
the protected page.

This is what your code will need to duplicate.


Okay, I understand the steps.... but I have been unable to perform
them.

When I try to post my userid and password to my login.aspx page, I
keep getting the html for the login page back. I assume that this is
because I do nto successfully login. There are only 3 fields on the
login page __viewstate, userid, and password. The login screen is
using "forms" authentication.

I have scoured the web looking for a simple example of this type of
login, but have not been successful.

Once logged in, I realize that I need to grab the auth cookie and use
it on future requests of pages.

I am really surprised that I can not find an example of this. Is it so
simple that everyone else is able to do it without problems.... or am
I missing something.

Please help.

Thanks.
Nov 17 '05 #9
"Jim J" <do**********@h otmail.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
"John Saunders" <jo***********@ surfcontrol.com > wrote in message

news:<es******* ******@TK2MSFTN GP12.phx.gbl>.. .
"buran" <bu***@buran.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...

I could swear I answered this question before...

You are attempting to substitute code for a browser. Your code will have to do what the browser would have done:

1) Browser attempts to reach a protected page, for instance, protected.aspx 2) Forms Authentication sees that the request does not include a Forms
Authentication Ticket in the proper cookie, so the server replies with a
"302 Page Moved" status, and a Location header pointing to the login page. 3) The browser requests the login page specified.
4) The server responds with the login page
5) The user fills in the login page and submits the form, so the browser
POSTs the form back to the login page
6) If the credentials are valid, the server responds with another "302 Page Moved" status, a Location header pointing to protected.aspx, and a
Set-Cookie header providing the encrypted Forms Authentication Ticket.
7) The browser then requests protected.aspx, but this time supplies the
Forms Authentication Ticket in a Cookie header
8) Forms Authentication sees that the request includes a valid Forms
Authentication Ticket, so it permits the access. The server responds with the protected page.

This is what your code will need to duplicate.


Okay, I understand the steps.... but I have been unable to perform
them.

When I try to post my userid and password to my login.aspx page, I
keep getting the html for the login page back. I assume that this is
because I do nto successfully login.


Jim, you know what they say about assumptions...

What happens if you assume that your assumption is incorrect, since that
seems to be the case?
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8185
by: Mike Cronin via DotNetMonster.com | last post by:
Hi there, Can anyone tell me what level of encryption is used when making an HTTPS POST request through an instance of the System.Net.HttpWebRequest object? Thanks much in advance! Mike Cronin Data On Call - Programmer
6
3094
by: omyek | last post by:
I'm trying to mimic the browsing of a webpage using an HttpWebRequest. I've had a lot of luck with it so far, including logging into pages, posting form data, and even collecting and using cookies. However, I ran into a scenario that I'm baffled by. I have a website which requires a user to login. This is nothing new and I was able to successfully log in. For our case, let's say the URL to the login page is http://login.html
3
2790
by: Hawksey | last post by:
I would like to be able to programatically(Using HTTPWebRequest and HTTPWebResponse) FORM post a user's credentials to a HTTPS login page (.ascx)control. The problem I think I have after attempting this and after reading other posts is; that if the login is successful data is retrieved from DB telling the login process where(which page) this user will be redirected to(different company users will go to different pages). Is it possible to...
10
31961
by: buran | last post by:
Dear ASP.NET Programmers, How can I post data to an ASP.NET login page and pass authentication? The login page uses forms authentication, users must supply usernames and password and have to click on a submit button. I want to automate this process by supplying values with HttpWebRequest and then download a file on the site. I think that I cannot invoke the submit button. Pleeeasee help, thanks in advance
8
3233
by: shankararaman.s | last post by:
Hi, I am trying to develop an interface which will fetch all my Yahoo mails. I am not able to sign in to yahoo by posting the form with my username & password. Please find my code below and correct me where am going wrong. string result; System.Net.HttpWebRequest request,request1; System.Net.HttpWebResponse response,response1;
0
4280
by: msnews.microsoft.com | last post by:
I have been raking my brains on why this does not work. I get back the same login screen again instead of the home page redirection which should occur after a successful login: 'create a cookie container so it can be shared between requests so that authentication can be maintained Dim objCookieCont As New CookieContainer 'create request to get the __VIEWSTATE of Authorize.NET's Logon.aspx page
2
4113
by: peter | last post by:
Hi, I have very strange situation but first description ;) I have: 1) project in VB.NET, in this f.e. 1 function: Public Function Login(ByVal UserName As String, ByVal UserPassword As String, Optional ByVal ConnectionParamList As String = Nothing) As String
2
5564
by: adwooley2 | last post by:
Hello. Have been losing plenty of hair over problem whereby I can't make it off the login page. Trying to pass login info to a login page and then move on to another page within the site so that I can download some data, but I keep getting the login page. Any ideas on this? Here's the code: ================================================== Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
0
12781
by: barrybevel | last post by:
Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302 problem. I'm using this code in a ASP.NET 2.0 application just in case that matters, maybe someone knows a better way to do this?
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9575
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9394
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4712
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.