Web

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruno

    Web

    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

  • rviray

    #2
    Re: Web


    Have you tried System.Net.Netw orkCredential


    --
    rviray
    ------------------------------------------------------------------------
    rviray's Profile: http://www.msusenet.com/member.php?userid=4211
    View this thread: http://www.msusenet.com/t-1871088972

    Comment

    Working...