hi,
Can someone help me with this.
I am having this codes:
WebRequest myRequest = WebRequest.Crea te( myurl ); -line1
WebResponse myResponse = myRequest.GetRe sponse(); -line2
......
to get a reply from a webserver.
The reply is actually a form with a textbox and a button.
Can i simulate filling up the textbox and submit the form to get another
reply from the server ?
I assume after line2, my codes should already have a "session/connection"
with the webserver now, can i post back to the server to get another reply ?
(eg. myurl?x=1)
Thanks & Regards
Taggy 1 3840
Hi Taggy:
Yes, you will have to simulate a POST back operation by writing data
into the request stream with the names and values of input elements
inside the form (the textbox and button). There are some examples to
download here: http://support.microsoft.com/kb/q303436/
If you need to track cookies across the different requests, create a
new instance of the CookieContainer class and assign it to the
CookieContainer property of the requests.
--
Scott http://www.OdeToCode.com/blogs/scott/
On Sat, 13 Nov 2004 09:17:56 +0800, "Taggy" <ta***@taggy.co m> wrote: hi, Can someone help me with this. I am having this codes:
WebRequest myRequest = WebRequest.Crea te( myurl ); -line1 WebResponse myResponse = myRequest.GetRe sponse(); -line2 ..... to get a reply from a webserver. The reply is actually a form with a textbox and a button. Can i simulate filling up the textbox and submit the form to get another reply from the server ?
I assume after line2, my codes should already have a "session/connection" with the webserver now, can i post back to the server to get another reply ? (eg. myurl?x=1)
Thanks & Regards Taggy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gerhard Pretorius |
last post by:
ON Win 2003 IIS6,
Since yesterday, (12 Aug 2003) for some strange reason, (after installing
WindowsServer2003-KB823980-x86-ENU.exe)
I cannot pass the
Request object to to VB COM DLL.
I have a funciton inVB DLL
Function BuildSqlWhereFromHTML(ByRef AspReq As ASPTypeLibrary.Request, _
ByRef AspSes As ASPTypeLibrary.Session) As String
|
by: Max |
last post by:
Hello. This is the first time I've posted to a newsgroup, and I do
this because I'm in desperate need of help.
I'm working a user management system, and when I activate a user that
has registered to my system, the current admin user logged in gets
logged out.
I can't seem to work out how - I can't even trace back where some of
the variables are coming from (for example, the "ref" part of the
Request.QueryString method).
Could someone...
|
by: Paxton |
last post by:
I created an html email containing a form whose method is POST. The
form is posted to an asp page for processing, but no values are
retrieved. So I response.write all the Request.Form fields, and nothing
appears. I change the form's method to GET, then response.write the
Request.QueryString items (which I can see in the URL) and it works fine.
I need to use POST, as the quantity of data from the form will often
exceed the limits of...
|
by: Paul M |
last post by:
Hi
Sorry if this is posted in the wrong group but I'm brand new to this
area. Basically I've got to post some XML documents to an external
server using HTTP web request (POST, not GET) and be able to receive
files back. I've got the XML file generated and checked over, but I
just dont know how to go about the post process. I've got a feeling I'm
supposed to create a form in my ASP application with an action which
points at the URL I've...
|
by: James Johnson |
last post by:
Dear C#Dex,
I am trying to automate a POST to a web page that clicks a button. I
have been able to hit a target web page and run the web page. However,
the button on the page does not click. I can set the target web page to
change to a new URL when I hit it, and that works, but I cannot get the
button to click based on my POST command. Is there some secret to
clicking the button? I have a button named btnGo and I set the value of...
| |
by: Ammar |
last post by:
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the end
user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of the
browser will move too slow and then displaying that the page not found!!!!
If the message is less than or equal to 1249 then no problem.
|
by: JThomas |
last post by:
Hello!
I'm having trouble with a page apparently causing my client's Safari
browser to time out. I don't actually have access to a Mac & Safari,
and haven't been able to physically see this duplicated, but this is
the descrip of the problem:
>From Client's Point of View:
1. Client, using Safari, fills out a form on one page, submits (POST).
2. Timeout - never sent to next page (submit button is working, but
|
by: Bingo |
last post by:
Hi group !
I am trying to write an ASP page that would forward an XML request
to a remote server, and then write the response to the client (a
kind of proxy, if you like).
I am sending the query to this ASP via a VBA (access2k) procedure,
which basically looks like :
Dim oXMLHTTP As New MSXML2.XMLHTTP40
|
by: figelwump |
last post by:
All,
I am writing an HTTP 1.1 compliant proxy in c#.NET, for use as a proxy
server for any web browser (IE, firefox, etc). I've got it working
fine for GET requests. However, when a POST request is issued by IE, I
find that sometimes IE does not render the page, even though my proxy
reports that it successfully sent the response from the server back to
IE. So, in IE a blank page is rendered. If I use a plugin like
IEWatch, it seems...
|
by: Jag |
last post by:
Hi
I am facing a strange issue. I have 3 ASP pages in the default
website
1. auth.aspx
<html>
<body>
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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();...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |