/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Very basic doubt on HTML POST.

I am not able to pass parameters using HTML POST.

Here is my html code.

[CODE]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<TITLE>A Sample Form Using POST</TITLE>
</HEAD>

<BODY BGCOLOR=”#FDF5E6″>
<H2 ALIGN=”CENTER”>A Sample Form Using POST</H2>

<FORM ACTION=”https://www.independentinc.com/scripts/insupport.exe/db_connect”
METHOD=”POST”>
<CENTER>
Login:
<INPUT TYPE=”TEXT” NAME=”name” VALUE=”<name>”><BR>

Password:
<INPUT TYPE=”TEXT” NAME=”password” VALUE=”<pwd>”><BR>

Office:
<INPUT TYPE=”TEXT” NAME=”officeNum” VALUE=”<num>”><P>
<INPUT TYPE=”SUBMIT”>
</CENTER>
</FORM>

</BODY>
</HTML>[/CODE]

When I click on submit button, I see the logon screen prompting username/password.

It should’ve been logged me in, when I clicked on submit button.

Can anybody point out the error please.

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@svidgenDec 14.2009 — The variables you're trying to POST in don't appear to be listed anywhere on the default sign-in form for the page. Additionally, there is a plethora of other fields which may be required for the sign-in--the script could also be checking the REFERRER header to ensure that sign-ins are coming from the default sign-in form.

Are you the author of the target site?
Copy linkTweet thisAlerts:
@seenuFourauthorDec 14.2009 — Hi Jon Wire,

Thanks for your reply.

I am not the author of the target website.

I purposely changed the names of the variables that the site is looking for.

Here is the actual code:

[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>A Sample Form Using POST</TITLE>
</HEAD>

<BODY BGCOLOR="#FDF5E6">
<H2 ALIGN="CENTER">A Sample Form Using POST</H2>

<FORM ACTION="https://www.independentinc.com/scripts/insupport.exe/db_connect"
METHOD="POST">
<CENTER>
Login:
<INPUT TYPE="TEXT" NAME="i_1_name" VALUE="<value>"><BR>

Password:
<INPUT TYPE="TEXT" NAME="i_1_password" VALUE="<value>"><BR>

Office:
<INPUT TYPE="TEXT" NAME="i_1_client_fl_salesperson" VALUE="<value>"><P>
<INPUT TYPE="SUBMIT">
</CENTER>
</FORM>

</BODY>
</HTML>[/CODE]


Above, I am showing the real values as <value>, just for security purpose.

Please advise.

Thanks a lot!
Copy linkTweet thisAlerts:
@svidgenDec 14.2009 — If you can't get this to work, you ought to contact the owner of the website. As I already stated, their form submits a lot more data than yours does--and they could be doing any number of checks to ensure that logins are coming from their form. Or even worse, your login attempts could be considered hack-in attempts by their sysadmins.

Contact that site owner and make sure what you're doing is acceptable--and if it is, they will be able to tell you exactly what you need to POST to ensure a successful login.
Copy linkTweet thisAlerts:
@seenuFourauthorDec 14.2009 — Hi Jon Wire,

The website admin sits next to me. Its his request that I create such a automatic login from another application.

I am trying to test using my simple HTML POST form, whether it works end-to-end.

The site am trying to access expects 3 login parameters, that I am passing already.

Can you please put some light as to why I still get stuck at the login prompt

Srinivas
Copy linkTweet thisAlerts:
@svidgenDec 14.2009 — Start by asking what parameters you need to pass in.
Copy linkTweet thisAlerts:
@seenuFourauthorDec 14.2009 — Hi Jon Wire,

I was successful by taking your suggestion.

I was missing one more required parameter.

When I sent all 4, I was able to login using my simple form.

Although, am stuck again at the login prompt, from this application. I guess, I have to study the application integration, before implementing it.

Thanks a lot! ?
×

Success!

Help @seenuFour spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...