Eweb External Application Authentication

benmwagner

Member
Join Date
Apr 2010
Location
Pennsylvania
Posts
16
I'm trying to HttpWebRequest to a dataview I created, and I keep getting a 401 I'm posting the code, and with anybody has any suggestions I appreciate it.

string uri;
uri =
"http://10.4.68.69/user/system/dataviews/LN3_PLC1.xml";
HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(uri);
httpRequest.Method =
"GET";
httpRequest.ContentType =
"text/xml";
httpRequest.AllowAutoRedirect =
false;
httpRequest.KeepAlive =
false;
CredentialCache newCredential = new CredentialCache();
newCredential.Add(
new Uri(uri), "Basic", new NetworkCredential(myUsername, myPassword, myDomain));
httpRequest.Credentials = newCredential;
HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();
 

Similar Topics

Does anyone have downloads of the TN 42799 and TN 49389 technotes? They are no longer available on Tech Connect.
Replies
3
Views
1,627
hi, i try to use eweb tcp serve program to transfer data but it time out. so i just want to know is there limit or fix for that. the sample not...
Replies
0
Views
1,058
I have updated the firmware of the EWEB module first to 5.001 then to 4.016. I have updated the firmware of the 1756-L73 to v28. The device is...
Replies
1
Views
1,505
Hello, There used to be a toolkit available through Allen-Bradley for the 1756 EWEB card to assist the development of webpages. Allen-Bradley...
Replies
1
Views
1,501
hi, i follow the manual to setup server and client for 1756-eweb card but i have some question, is there anyone who have program for both server...
Replies
1
Views
1,067
Back
Top Bottom