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

Home Posts Topics Members FAQ

HTML data from a WinHTTP call to an ASPX page

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("W inHttp.WinHttpR equest.5.1")
obj1.SetProxy HTTPREQUEST_PRO XYSETTING_DIREC T
obj1.Open "GET", "http://192.168.5.12/poc/winhttp.aspx", vbfalse
And in IIS, the WinHTTP ASPX page has the following

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="winht tp.aspx.cs" Inherits="winht tp" %>
<html>
<body />
</html>

The C# code for now only has this;

public partial class winhttp : System.Web.UI.P age
{
protected void Page_Load(objec t sender, EventArgs e)
{
Response.Clear( );
Response.Write( "Data from winhttp.aspx");
}
}

What I receive from the client end is this:

Data from winhttp.aspx
<html>
<body />
</html>

I want to prevent IIS from returning the HTML data of the ASPX page. Can this be done? How?

Regards,

Gaetan
Jun 15 '06 #1
1 2290
I posted the original question because VS 2005 was producing the following error message when I
removed all the HTML tags;

Validation(): Element 'html' occurs too few times.

Since then, I found out that I can turning off validations under : Tools -> Options -> Text Editor
-> HTML -> Validation

Now, if only there were some sort of "#pragma" like feature in VS2005 to turn off validations on a
per file basis.
Jun 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
20111
by: Francis | last post by:
I have the following codes in an asp file. This page can receive the XML string send from client. ================================================== Dim objReceive Set objReceive = Server.CreateObject("Microsoft.XMLDOM") objReceive.async=false On Error Resume Next objReceive.load(Request)
0
3166
by: kaushalmbhavsar | last post by:
I am working on one VB.NET application where I am using WinHttp.dll to post request on website. First request is for Login Page and I have gone through all input types of that page and pass those variables and value pair in Send method of WinHTTPRequest but it is not works. Let' me inform you that this login page has viewstate hidden input type, so should I have to pass it in post string (String for Send method argument) list of Input...
3
19136
by: kaushalmbhavsar | last post by:
I am working on one VB.NET application where I am using WinHttp.dll to post request on website. First request is for Login Page and I have gone through all input types of that page and pass those variables and value pair in Send method of WinHTTPRequest but it is not works. Let' me inform you that this login page has viewstate hidden input type, so should I have to pass it in post string (String for Send method argument) list of Input...
5
15820
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
6
7390
by: john | last post by:
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the browser displays or offers to save the binary file instead. I would like to have the browser accept and display the revised HTML code as well as offering to open or save the attached file. This SHOULD be possible using a multipart MIME format -...
2
1781
by: Giedrius | last post by:
hi, i have an idea to make admin tool on home computer, that would generate html files using some kind of templates and database data and put these generated html files to public web server, witch doesn't have running asp.net, using ftp access. why i need so? because: 1) my project doesn't need to receive any data from browsing customers, it will be only company news, info about new products - so it's enough to have static html on...
13
2847
by: Thom Little | last post by:
I have an HTML Form that uses GET and is processed by an ASP.NET 1.1 web application. Can you recommend a simple example of an HTML Form that uses POST and is processed by an ASP.NET web application (either 1.1 or 2.0)? What was the source of your information? Thank you.
0
1392
by: Balex | last post by:
hi, I have a VB.Net app which "reads" in html pages from a web server using winhttp. The purpose is for the app to "fill in" data fields on the page, then send it back to the web server, as if a user had been entering the data in his web browser. It's part of a data input automation project. I'd like, for my own testing, to show the pages I am accessing. So I added a webBrowser control to my main form, I have the html sent by the server...
3
3612
by: computer_guy | last post by:
Hi Everyone, I run into a problem. I am trying to write an aspx that can dynamically generate an image based on some input parameters. Things are very simple if the size of the parameters is small and I can put them on the URL and pass them in as HTTP GET. In my image generation script I just need to read the parameters and then pump out the right MIME type and the right image byte stream. It is also very easy to use:
0
9636
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
10138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9930
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
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
7485
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
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.