By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Web

P: n/a
Hello friends

I have a problem with authentication to send a content to a URL on AS400
server. I ever done this before, and I have a java example how to do that.
The problem is that I do't know wich method should I use no VB.net to do the
same as "setRequestProperty" on this example.

conn = (HttpURLConnection)url.openConnection();
String szUserPassword=ivAS400User+":"+ivAS400Password;
String szEncoding = new BASE64Encoder().encode(szUserPassword.getBytes());
conn.setRequestProperty("Authorization", "Basic " + szEncoding);

I 'm using WebRequest Class to send the content.
Do everyone know wich method on vb.net whould I use to send the
authentication?
(It is first time I'm doing a project like this and I appreciate any help!!)
Thank you for help
Bruno

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Have you tried System.Net.NetworkCredential
--
rviray
------------------------------------------------------------------------
rviray's Profile: http://www.msusenet.com/member.php?userid=4211
View this thread: http://www.msusenet.com/t-1871088972

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.