locked
How do I validate PAC file URL ? RRS feed

  • Question

  • Hello,

    In one of my application I'm accepting PAC file url from user? How do i validate the PAC file url in C++? Is there any direct windows API to validate the PAC file URL?

    Thanks in advance. 


    Nandkumar T.

    Friday, September 8, 2017 11:53 AM

Answers

All replies

  • download the file and execute it with IE's jscript engine via IActiveScript...or with any other javascript engine. 


    Visual C++ MVP

    Friday, September 8, 2017 12:53 PM
  • I just wanted to validate the ULR not content. Is there any windows API for this? Like parseURL or AfxParseURL? 

    Thanks In Advance


    Nandkumar T.

    Friday, September 8, 2017 1:04 PM
  • PathIsURL


    Visual C++ MVP

    • Proposed as answer by Baron Bi Wednesday, September 27, 2017 5:40 AM
    • Marked as answer by prxy Saturday, May 12, 2018 9:02 AM
    Friday, September 8, 2017 1:20 PM