Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to Extract Proxy IP form a Pac File???

Posted on 2004-10-28
5
Medium Priority
?
524 Views
Last Modified: 2010-08-05
Hi all,  
 Can any body please guide me, on how to extract  proxy IP from a PAC file.

waiting for your response ,

Manjesh

0
Comment
Question by:Manjesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 9

Expert Comment

by:TannerMan
ID: 12432237
The PAC file, written in Java Script, should have the proxy HOST ip/name in it. Can you open the PAC with text editor and read the code to find your host designation, or am I missing your point?
0
 
LVL 1

Author Comment

by:Manjesh
ID: 12432335
thanks Tanner Man,
 i dont want to parse the pac file for proxy IP, for i am already doing it. I just wanted to avoid pac file reading.


SO there is an alternative.

http://groups.google.com/groups?hl=en&lr=&threadm=109p22tnsbkj533%40corp.supernews.com&rnum=2&prev=/groups%3Fhl%3Den%26lr%3D%26q%3DProxy%2BIP%2Bfrom%2BPAC%26meta%3Dgroup%253Dmicrosoft.public.inetsdk.programming.wininet


void __stdcall CallMaster(
      HINTERNET hInternet,
    DWORD_PTR dwContext,
    DWORD dwInternetStatus,
    LPVOID lpvStatusInformation,
    DWORD dwStatusInformationLength)
{

    REQUEST_CONTEXT *cpContext;
    cpContext = (REQUEST_CONTEXT*)dwContext;
    char szStatusText[80];

    switch (dwInternetStatus)
      {
                  case INTERNET_STATUS_CONNECTING_TO_SERVER:
                   CString d((char*)lpvStatusInformation);
                           AfxMessageBox(d);
                  break;
                  }
}

From this i can obtain the Proxy form pac file without parasing it.

Regards,
Manjesh

0
 
LVL 9

Expert Comment

by:TannerMan
ID: 12432361
So you solved it then? GREAT
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12942233
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

596 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question