473,796 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WinHTTP failing with .asp pages

4 New Member
I have a WinHttp.WinHttp Request.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 2624
jhardman
3,406 Recognized Expert Specialist
I'm copying this to the iis forum just in case they know more about this issue.

Jared
Jun 29 '07 #2
danp129
323 Recognized Expert Contributor
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("M icrosoft.XMLHTT P") and see how it goes...
Jun 29 '07 #3
neilx
4 New Member
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.ServerXM LHTTP.6.0 and Microsoft.XMLHT TP 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 Recognized Expert Contributor
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 New Member
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
2316
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 my asp pages will need be devloped to talk to the telemoney server in order to pass and receive data like credit card no, transacted amount etc. Initially i thought that applying asp form method will be fine to submit data over to their server,...
1
2425
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
2608
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 do it manualy with IE any help would be really great script looks like that Set oHttp = CreateObject("WinHttp.WinHttpRequest.5") oHttp.Option(2) = "Windows-1251" ' WinHttpRequestOption_URLCodePage = 2
1
1872
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. Saravana Kumar
1
2291
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 to prevent IIS from returning the HTTP code of the ASPX page. The client side use something like this to initiate the request: set obj1 = createobject("WinHttp.WinHttpRequest.5.1") obj1.SetProxy HTTPREQUEST_PROXYSETTING_DIRECT obj1.Open "GET",...
1
5074
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 to "dialogue" with web servers from a VB.Net app. It works fine as long as the server is a straightforward http server. I am able to retrieve pages from such a server and to send "answers" to the server to get the next page, and so on. No problems....
2
4161
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 = CreateObject("WinHttp.WinHttpRequest.5.1") Http.Open "GET", "http://<path>/filename.asp", False Http.setCredentials "<domain>\Administrator", "<password>",0 Http.Send
4
2335
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) that; 1. Takes an URI as an argument. 2. Prints the proxy for that URI to stdout (or in the static library case, returns the resulting string).
0
4948
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 to access https pages on other servers and I can access http requests on oracle application servers. The problem is isolated to accessing https pages on oracle application servers and I have now come up against this problem with three of my
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10456
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.