473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

changing post-type when posting using webclient

Hi,

I'm trying to log in to a webpage automaticly, the
sourcecode for the page is:

<FORM ACTION="/login_post" METHOD="POST">
<input type="hidden" name="REDIRECT"
value="config.htm"><div align="left">
Password&nbsp; </font><input type="password" name="PWORD"
size="20">
<input type="submit" value="Login">

When I try to post the data using uploadData I send:

REDIRECT=config.htm&PWORD=XXXXX

When I use Ethereal I see that this is the same post that
the Internet Explorer posts. The only difference is that
my program sends a "POST config.htm" header, but the IE
sends "POST /login_post" . I think this may be why my
program cant log in. Does anybody know how I change this?
Nov 15 '05 #1
1 1369
lasabo,

When you are setting the url for the posting, you want to make it so
that it is /login_post not config.htm. The action is the URL that the
contents of the form are to be posted to.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"lasabo" <ra********@hotmail.com> wrote in message
news:22****************************@phx.gbl...
Hi,

I'm trying to log in to a webpage automaticly, the
sourcecode for the page is:

<FORM ACTION="/login_post" METHOD="POST">
<input type="hidden" name="REDIRECT"
value="config.htm"><div align="left">
Password&nbsp; </font><input type="password" name="PWORD"
size="20">
<input type="submit" value="Login">

When I try to post the data using uploadData I send:

REDIRECT=config.htm&PWORD=XXXXX

When I use Ethereal I see that this is the same post that
the Internet Explorer posts. The only difference is that
my program sends a "POST config.htm" header, but the IE
sends "POST /login_post" . I think this may be why my
program cant log in. Does anybody know how I change this?

Nov 15 '05 #2

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

Similar topics

3
by: Michael Eisenstadt | last post by:
What are the coding options for client-side image size changing? I want the viewer to be able to switch between two different sizes of the same image with his/her mouse. Thanks in advance for...
51
by: Richard Hengeveld | last post by:
Hi all, I'm trying to understand how pointers for function parameters work. As I understand it, if you got a function like: void f(int *i) { *i = 0; }
2
by: Chris Stankevitz | last post by:
Hi, I have some weird behavior in a very large (500,000 line) program that I boiled down to a few lines: TCSensorMode::ProcessMeasurement() { InternalComplicatedFunction(1.0, 2.0); int a =...
1
by: JavaScriptJon | last post by:
Has anyone ever had problems with changing the src of an embed after the page has loaded?. I have had this problem 2 times now and in result have had to actually reinitialise the embed on the...
0
by: Tom | last post by:
I am not sure if this should be under the SourceSafe or the VB.NET forum, so I will post to both and hope someone has the answer: I have a VB.NET project stored under SourceSafe - Let's say the...
8
by: Bosconian | last post by:
I have two multiple select inputs. Initially the first contains a bunch of items and the second is empty. Using a common method, I move items back and forth by double clicking on them. This...
1
by: steven scaife | last post by:
Ok I know its probably not relevant here but i didn't know of a good place to post. I have been asked to develop a site in asp.net. The current site is written in PHP, if i change the server side...
4
by: Mimi31 | last post by:
In a previous post Lille asked for help in changing the Microsoft Windows XP Home edition from German to english. She was given the site as the above title. This is exactly my problem as well and...
3
by: Wojtek | last post by:
I have the following: <tr onMouseOver="alert('Over a row')"> and I want to modify the event to be: <tr onMouseOver="alert('Over THIS row')"> in other words reaching into the event, and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...
0
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,...

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.