473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NetworkSteam or Sockets to fill out HTTP form??

Is it possible to use the NetworkSteam or Sockets to somehow fill out
a remote HTTP form? Can this be done with another class (or even a
3rd party utility?) I need to automate resetting the password on
about 250 server-based applications and the only way to do so is
through an HTTP form. Obviously every time time the password needs to
be changed I don't want to fill out 250 forms.

I understand how to use the NetworkSteam and Sockets classes, but how
would you fill out specific textboxes in the forms and then do a
submit?

Thanks,
Ray Ackley
Nov 15 '05 #1
1 2096
If you don't need a GUI for this process, I'd recommend using the
HttpWebRequest/WebResponse classes.

These are the essential tools to mimic a web browser inside a C#
application.

For your particular problem, what you'd do is mimic a POST to the form
using those two classes. There are plenty of examples on the web, if
you do a quick little search.

On 16 Dec 2003 07:50:38 -0800, ra*****@ford.co m (Ray Ackley) wrote:
Is it possible to use the NetworkSteam or Sockets to somehow fill out
a remote HTTP form? Can this be done with another class (or even a
3rd party utility?) I need to automate resetting the password on
about 250 server-based applications and the only way to do so is
through an HTTP form. Obviously every time time the password needs to
be changed I don't want to fill out 250 forms.

I understand how to use the NetworkSteam and Sockets classes, but how
would you fill out specific textboxes in the forms and then do a
submit?

Thanks,
Ray Ackley


Nov 15 '05 #2

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

Similar topics

1
3799
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and establishes itself on port 9900. It then polls for pending connections every 500ms. I also have a vb6 application that uses the WinSock control at the other end of the communication tunel. I have to work with vb6 here because it uses less memory than .NET.
1
2429
by: Ben | last post by:
I've written a fair amount of sockets code using the Winsock2 API, but I am having some trouble converting to the .Net Sockets API, specifically asynchronous sockets. What I have is a form that is both a client and a server. When the form starts I create a listening socket and call Socket.BeginAccept(). When a client connects my accept function is called, and it is on a separate thread. After I accept the client connection I connect to...
3
1913
by: Mr Mind - Lion | last post by:
Please send me some sample for using Raw sockets. And also clearly specify that how can I set the ip header of the protocol. Please help me. Thanx.
5
2253
by: Dan Ritchie | last post by:
I've got a client/server app that I used to send large amounts of data via UDP to the client. We use it in various scenarios, one of which includes rendering a media file on the client as it is transferred via the underlying UDP transport. In this scenario it is very important to keep CPU usage as low as possible. Both the client and server were originally written in C++, but I've re-written the client in C#, partly to simplify it, but...
7
7191
by: ero | last post by:
Is it possible to input values into a web form from an external source like a client-side javascript? There is a web site that I'm viewing where I have to enter 5 values in the form. 4 of the values don't change only one input field does. Is it possible to create a javascript to run which would popluate the non-changing values by executing the script or by pressing a button on the script? No experience at this so any examples would...
10
1934
by: Anil Gupte | last post by:
I am playing a Windows Media File which is protected by their DRM. I want to be able to automatically fill in the form asking for payment with my saved parameters. Is there any way to do this? Note, this is not on the web - this is a desktop app that has an embedded player or using mciSendString to play the file. Thanx in advance, Anil Gupte www.keeninc.net www.icinema.com
12
2246
by: liamo | last post by:
Don't laugh lol I know your all php guru's : ) Ok, so I have little if any knowledge with the programming language php - only having created small enquiry forms. Now I have a client that needs a job order form with a little more function than having solely contact details and a big enquiry text area. The form I created in HTML is located at http://www.ebesign.co.nz/projects/justfixit/job_order_form.html and has used javascript to...
3
2672
by: underground | last post by:
I found this form on the scripts. However when I attemp to open the php file on the sever I get a error message Parse error: syntax error, unexpected $end on line 238 <? /** * Main.php * * This is an example of the main page of a website. Here * users will be able to login. However, like on most sites * the login form doesn't just have to be on the main page, * but re-appear on subsequent pages, depending on whether * the user...
0
9577
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
10569
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...
0
10325
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...
1
10315
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
9140
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
7615
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
6847
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();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
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.