By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,660 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,660 IT Pros & Developers. It's quick & easy.

Read/retrieve Page content from benind proxy server (ASP Classic)

P: 6
Hi there

Want to know if its possible to Read/retrieve Page content from behind proxy server?

what i mean is this.
i have a server that sites at a corp business. and to get onto the internet u need proxy authentication.

i want to know if i can do this:
1.User accesses asp script on intranet.
2.page runs code.
3.code then authenticates with the proxy server.
4.goes through internet to website.
5.retrieves data from site.
6.shows retrieved data on user's screen

Can anyone help?

thanks in advance
Regards
Jeremy
Jan 29 '12 #1
Share this Question
Share on Google+
8 Replies


Expert 100+
P: 164
Use the XMLHTTP object.

Expand|Select|Wrap|Line Numbers
  1. set obj = server.createObject("msxml2.serverxmlhttp")
  2. obj.setProxyCredentials "username", "password"
  3. obj.open "GET", "URL", false
  4. obj.send ""
  5.  
  6. response.write obj.responseText
  7.  
Feb 2 '12 #2

P: 6
@Nicodemas
Hi Nicodemas

what about the proxy server address?

Regards

jeremy
Feb 2 '12 #3

Expert 100+
P: 164
I'm not sure I understand your question. What about it? If all external traffic from the web server exits your intranet through the proxy, then why would you need to explicitly state the proxy address?
Feb 2 '12 #4

P: 6
Because the proxy has to be manually entered into the browsers. if you dont set it it wont detect unless you set the browser to auto detect.

the corporation routes all their internet traffic to a central place like over 1500miles away.

trying to set a way so that when people go to the page they wont need to be asked for their username and password to get the external data
Feb 2 '12 #5

Expert 100+
P: 164
I suspect its a server configuration. Please ask that question on the Windows Forum, as it does not apply to this programming forum.
Feb 2 '12 #6

P: 6
it isnt a server configuration. as its a asp codeing to get through the proxy server and outside
Feb 2 '12 #7

Expert 100+
P: 164
ASP code cannot control network topography or routing.
Feb 2 '12 #8

P: 6
thats all you had to say.
Feb 2 '12 #9

Post your reply

Sign in to post your reply or Sign up for a free account.