Hey,
I'm planning on setting up a regular static website with a small login form
on the page that would then POST to a WT web server for user login, etc. and
then let the user go from there.
Right now, if I set the form to PUT, I can see my arguments just fine, but
if I POST I see no arguments
Here's the URL created by PUT:
http://127.0.0.1:8080/wtapp?loginname=test&loginpassword=password&inputsubmi
t1=Sign+In
Form snippet:
<FORM id=form1 action=http://127.0.0.1:8080/wtapp method=PUT>
<FIELDSET><LEGEND>Sign-In</LEGEND><LABEL for= loginname >Client ID:</LABEL>
<INPUT id= loginname name= loginname > <LABEL
for= loginpassword >Password:</LABEL> <INPUT id= loginpassword type=password
name= loginpassword > <INPUT id=inputsubmit1 type=submit value="Sign In"
name=inputsubmit1>
</FIELDSET> </FORM>
Code:
try {
std::string pas = " loginname";
env.getCgiValue(pas) ;
WEnvironment::ArgumentValues av;
av = env.getArgument(pas);
strLoginName = (CLString)av[0];
pas = " loginpassword";
av = env.getArgument(pas);
strLoginPass = (CLString)av[0];
}
catch (...) {
// No login info
}
WEnvironment::arguments() and therefore getArgument() states:
"Arguments passed to the application, either in the URL for a http GET, or
in both the URL and data submitted in a http POST."
Am I using it/expecting wrong? Is this a general bug? Or just a bug in the
Windows httpd? I'm not using the latest version just yet, but I'll upgrade
in a week or so. I'll be deploying on Linux boxes, but I normally develop
under Windows (cause I'm too lazy to setup a dev environment under Linux!
:-) )
While I don't need this working for remote login (it's nice to have, though)
I think I might need it for capturing PayPal payment results. Has anyone
out there integrated PayPal into a WT app?
Thanks!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest