468,544 Members | 1,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,544 developers. It's quick & easy.

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

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
8 4069
Nicodemas
164 Expert 100+
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
@Nicodemas
Hi Nicodemas

what about the proxy server address?

Regards

jeremy
Feb 2 '12 #3
Nicodemas
164 Expert 100+
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
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
Nicodemas
164 Expert 100+
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
it isnt a server configuration. as its a asp codeing to get through the proxy server and outside
Feb 2 '12 #7
Nicodemas
164 Expert 100+
ASP code cannot control network topography or routing.
Feb 2 '12 #8
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.

Similar topics

1 post views Thread by Andy Todd | last post: by
reply views Thread by sri_san | last post: by
reply views Thread by Adam Tibi | last post: by
reply views Thread by Dan Lenski | last post: by
11 posts views Thread by subhadip | last post: by
2 posts views Thread by Water Cooler v2 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.