473,385 Members | 1,875 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,385 software developers and data experts.

WinHTTP failing with .asp pages

4
I have a WinHttp.WinHttpRequest.5.1 object that works perfectly when GETing .htm pages, but times out when trying to GET .asp pages.

I have tried using setCredentials:

Expand|Select|Wrap|Line Numbers
  1. Set Http = CreateObject("WinHttp.WinHttpRequest.5.1")
  2. Http.Open "GET", "http://<path>/filename.asp", False
  3. Http.setCredentials "<domain>\Administrator", "<password>",0
  4. Http.Send
  5.  
This also fails. The system is WinXP with IIS 5.

I can run the same code on a Win 2003 server running IIS 6 and it works. Is there a setting I have forgotton on my system that will let this work?
Jun 29 '07 #1
5 2594
jhardman
3,406 Expert 2GB
I'm copying this to the iis forum just in case they know more about this issue.

Jared
Jun 29 '07 #2
danp129
323 Expert 256MB
Is the problem with any .asp page or just a certain one? I had an issue with pages in the past that redirected to another page. Not sure if the fix was to install some updates or to switch to a different component. You might try using CreateObject("Microsoft.XMLHTTP") and see how it goes...
Jun 29 '07 #3
neilx
4
Any page. This is the one I use for testing and it shows that the content is not important:
Expand|Select|Wrap|Line Numbers
  1. <!-- new_page_1.asp -->
  2. <html>
  3. <head>
  4. <title>New Page 1</title>
  5. <body>
  6. Test
  7. </body>
  8. </html>
  9.  
I have tried Msxml2.ServerXMLHTTP.6.0 and Microsoft.XMLHTTP with the exact same result - a timeout on .asp but no problem with .htm. It is something to do with the ability of the component to run asp.dll I think.
Jun 30 '07 #4
danp129
323 Expert 256MB
ok, just to verify since you mentioned the version of IIS. Is your problem with IIS being able to serve pages (ie can you browse to http://<path>/filename.asp just fine in a browser) ? Or is it only a problem you're having using xmlhttp to request .asp pages regardless of which server it is located?
Jun 30 '07 #5
neilx
4
The latter. The asps are browsable.
Jul 9 '07 #6

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

Similar topics

2
by: yukeshean | last post by:
hi, I'm helping a company to develop a merchant site for online transaction. Since the company already registered with Telemoney payment gateway to handle the credit card verification, therefore...
1
by: yukeshean | last post by:
how to use winhttp with asp to talk to Telemoney payment gateway server? how to use winhttp to make few communication link with telemoney and the links involve more than 1 asp page?
0
by: thueirby | last post by:
h when i try to get data from site with clients sertificates with winHttp, I have a problem with result encoding (ru). Its OK with any sites without client sertificates, and its OK when i try to...
1
by: saravana kumar | last post by:
Hai , I am new to winHTTP. Can anyone point me out a good website to find few startup samples and details about winHTTP. Please help me out to start winHTTP. :confused: Any help appreciated....
1
by: Gaetan | last post by:
I'm doing a prrof of concept to develop an application to run under WinPE. The application will use WinHTTP to send requests to an ASPX file running IIS 6.0 My problem is that I do not know how...
1
by: Balex | last post by:
Hi This is a question for people who know and use the winhttp DLL from MS. I need to be able to simulate the entry by users of data into a web-based application. So I started with using winhttp...
2
by: neilx | last post by:
I have a WinHttp.WinHttpRequest.5.1 object that works perfectly when GETing .htm pages, but times out when trying to GET .asp pages. I have tried using setCredentials: Set Http =...
4
by: Ted Lyngmo | last post by:
Hi! I'm new (but please do continue reading) to C++ in the VS environment and wanted to create a standalone program (or preferably, a static library, compatible with other Windows compilers)...
0
by: Brian Pitt | last post by:
Hi I am trying to use WinHttp.WinHttpRequest.5.1 to access an https (ssl) page on an Oracle-Application-Server-10g and I keep getting a -2147483638 error. I am able to use the exact same script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.