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

Home Posts Topics Members FAQ

HOWTO Post to a URL from Server Side ASP script.

ATS
HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web site,
and then get the returned HTML into a string which on service side script I
can then parse. Is there any object built into IIS or Microsoft I could use
Server.CreateOb ject with to make this possible?

Jul 26 '06 #1
3 2377

"ATS" <AT*@discussion s.microsoft.com wrote in message
news:8F******** *************** ***********@mic rosoft.com...
HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web site,
and then get the returned HTML into a string which on service side script
I
can then parse. Is there any object built into IIS or Microsoft I could
use
Server.CreateOb ject with to make this possible?
Research the "MSXML2.ServerX MLHTTP" object.


Jul 26 '06 #2
ATS wrote:
HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web
site, and then get the returned HTML into a string which on service
side script I can then parse. Is there any object built into IIS or
Microsoft I could use Server.CreateOb ject with to make this possible?
http://www.aspfaq.com/show.asp?id=2173
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 26 '06 #3
Hi is it possible to dio this on sites using windows authentication.
Using teh method below I get this error.

HTTP 401.2 - Unauthorized: Logon failed due to server configuration
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Background:
This is usually caused by a server-side script not sending the proper
WWW-Authenticate header field. Using Active Server Pages scripting this
is done by using the AddHeader method of the Response object to request
that the client use a certain authentication method to access the
resource.
Bob Barrows [MVP] wrote:
ATS wrote:
HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web
site, and then get the returned HTML into a string which on service
side script I can then parse. Is there any object built into IIS or
Microsoft I could use Server.CreateOb ject with to make this possible?
http://www.aspfaq.com/show.asp?id=2173
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 18 '06 #4

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

Similar topics

5
4249
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the second form when it is called. Both forms are .htm files that call themselves when the submit button is press via the following command in each form:...
3
2511
by: Tim Wade | last post by:
Does anyone have any ideas on how to do an automatic html form post using hidden fields without introducing client-side script nor using a server-side WebRequest by passing the information back up to the browser while the base href is still set to my site. The problem I was having with the server-side WebRequest is that the relative links of...
6
2127
by: Phillip N Rounds | last post by:
I have a webform, from which I have to submit info to another site. Their instructions are to have a html form, with the following as the submit: <form method="post" action="http://www.theirsite.htm"> <input type=hidden name="field1" value="value1"> <input type=hidden name="field2> value="value2> <input type="submit" value="Click Me"> On...
3
2104
by: PVU | last post by:
Hello, I have an page that calls the function below. What i want to do is that this function post data to the server (ASP) and the server will response with 'OK' My question is how can i send data clientside from Javascript to the server ? (navigate ? with url ?) and check the returned data in the same function ?
1
2560
by: David. E. Goble | last post by:
I have a slideshow, it uses sigsImages=new Array()"); sigsImages="sigs/finished1.jpg" sigsImages="sigs/foghorn.jpg" sigsImages="sigs/motto.jpg" sigsImages="sigs/sig.jpg" sigsImages="sigs/SWAT.jpg" sigsImages="sigs/title.gif"
2
12539
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser <form action="display.aspx" method="post" target="_blank"> will submit the form data and open display.asp in a new browser
5
5382
by: Topper | last post by:
Hello! How to create WebService without IIS and ASP.NET? For example, create WebService for smart device client without ASP.NET/IIS techology. Without ASP.NET and IIS - is a key question!! May somebody knows where can i get information or examples for current subject....
6
5909
by: Ian Boyd | last post by:
Every time during development we had to make table changes, we use Control Center. Most of the time, Control Center fails. If you try to "undo all", it doesn't, and you end up losing your identity seed, or your constraints, or your triggers, or your table. Talking to developers at other companies who have had the misfortune of using DB2, they...
8
3502
by: Laith Zraikat | last post by:
I am trying to invoke a post request from code behind of an asp.net page using "WebClient" object, and I want the user to be redirected to the action url as well. So far Ive been able to send the post and get the response. using this code: Dim PostData as string Dim ActionURL as string Dim myWebClient As WebClient = New WebClient
0
7659
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...
0
7580
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...
0
8103
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...
1
7634
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...
0
7945
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...
0
3634
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...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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...

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.