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 "setRequestProp erty" on this example.
conn = (HttpURLConnect ion)url.openCon nection();
String szUserPassword= ivAS400User+":" +ivAS400Passwor d;
String szEncoding = new BASE64Encoder() .encode(szUserP assword.getByte s());
conn.setRequest Property("Autho rization", "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
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 "setRequestProp erty" on this example.
conn = (HttpURLConnect ion)url.openCon nection();
String szUserPassword= ivAS400User+":" +ivAS400Passwor d;
String szEncoding = new BASE64Encoder() .encode(szUserP assword.getByte s());
conn.setRequest Property("Autho rization", "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
Comment