473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 7532
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

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

Similar topics

0
by: Andy Todd | last post by:
Hi We have just moved an ASP.NET application into the live environment which is as follows: Sun Proxy Server / Firewall Windows 2000 Server / IIS5 The URL for the site maps to the Sun...
1
by: Andy Todd | last post by:
Hi We have just moved an ASP.NET application into the live environment which is as follows: Sun Proxy Server / Firewall Windows 2000 Server / IIS5 The URL for the site maps to the Sun...
0
by: sri_san | last post by:
Hello, I am stuck with an issue and would appreciate if anyone can help me out with the same. I have a few aspx(input) pages where the user enters the selection criteria for generating reports in...
2
by: NG WEI CHUNG | last post by:
Hi, Some of my clients site is unable to view the ASP .NET page due to the proxy server and firewall or perhaps IE setting etc, I m not sure what is the actual cause of the problem, it display...
0
by: Adam Tibi | last post by:
Hello, I have this: MasterPage 1: <asp:ContentPlaceHolder ID="cphHead" runat="server"> </asp:ContentPlaceHolder> Some Html... <asp:ContentPlaceHolder ID="cphBody1" runat="server">...
1
by: mizi | last post by:
Hi. I'm using web hosting services of a company. I try to connect to a remote SQL Server from the hosting account. But they told me I must use a "proxy aware" code to connect to the SQL server...
5
by: ayaz.usman | last post by:
Hi, I've built a web services proxy server, in C# using wsdl.exe, by importing wsdl. Howeever, when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does not match the wsdl I fed...
0
by: Dan Lenski | last post by:
Hi all, I've recently written an HTTP proxy server for the Motorola E815 cell phone, based on Suzuki Hisao's "Tiny HTTP Proxy" (http:// www.okisoft.co.jp/esc/python/proxy/). This cell phone...
11
by: subhadip | last post by:
Hi , I want to retrieve any web page content using javascript . suppose I logged into my gmail account and opened my e-mail. now i want that a javascript will execute on the page and read all text...
2
by: Water Cooler v2 | last post by:
Normally, in ASP.NET applications, we read from a Request object and write to the Response buffer. However, I wish to read the request object, do some validations on it, and route the request to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.