Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

How to add NetworkCredential?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fj - 21 Feb 2007 16:06 GMT
I use TCPClient object. Is there any way I can add networkCredential object
to the request?

How can I add username, password information on the web request? Again I am
using TCPClient and send byte stream through socket.

thanks in advance
-fj
Oliver Sturm - 21 Feb 2007 18:03 GMT
Hello fj,

>I use TCPClient object. Is there any way I can add networkCredential object
>to the request?

TCP doesn't know anything about network credentials.

>How can I add username, password information on the web request? Again I am
>using TCPClient and send byte stream through socket.

If you're constructing a web request, you need to look on that layer to
add your credentials. TCP doesn't have anything to do with it - it runs on
a lower layer and doesn't care about higher level protocols that may
include authorization features.

I'm not exactly sure what you're trying to do here - I assume when you
mention a "web request", you are *not* referring to System.Net.WebRequest,
are you?

               Oliver Sturm
Signature

http://www.sturmnet.org/blog

fj - 21 Feb 2007 22:40 GMT
I guess I can switch from TCPClient to WebRequest object.

Do you know if I use the same request btye stream of TCPClient over
WebRequest, will it make different?

Thanks
fj

> Hello fj,
>
[quoted text clipped - 18 lines]
>
>                Oliver Sturm

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.