How to process a .pac file in Vb.Net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rizwan6feb
    New Member
    • Jul 2007
    • 108

    How to process a .pac file in Vb.Net

    My simple question is:

    How to process a .PAC file in Vb.NET ?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    1) Discover format
    2) Read file in (FileStream object maybe?)
    3) Parse and deal with as you please

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      Looks like a text file. Use a StreamReader object.

      Comment

      • rizwan6feb
        New Member
        • Jul 2007
        • 108

        #4
        Well this is quite obvious that first of all i have to read the file, the problem is not reading the file, problem is to get a proxy against a given URL. As

        A PAC file contains a JavaScript function "FindProxyForUR L(url, host)". This function returns a proxy to be used against the url passed to this function as parameter how can i parse that function in Vb.NET

        Comment

        Working...