At 23:47 24.02.2001 -0500, Roy Pardi wrote:
>any late night help out there?
>
><snip>

Its bright daylight here.


>I am hitting the CGI and getting a return value but it is not validating 
>the pw.
>
>Am I missing something with what I am sending??

Here is an URL which just echoes the name/value - pairs it received via GET 
or POST:
http://www.lingo.de/cgi-bin/dp_parse.pl


from an html form with your example it echoes:

Submitted via POST

1: entry{"db"} = default
2: entry{"uid"} =
3: entry{"userid"} = someName
4: entry{"pw"} = somePass
5: entry{"login"} = Logon


via director I get:

-- Welcome to Director --
durl = "http://www.lingo.de/cgi-bin/dp_parse.pl"
dLp = [#method: "post", #name: "form1", #name: "login", #db: "default", 
#uid: "", #pw: "admin", #userID: "admin"]

id = postnettext(durl,dLp)
put netdone(id)
-- 1
put nettextresult(id)
-- "<HTML>
<HEAD>
<TITLE> CGI generated text </TITLE>
</HEAD>
<BODY>
Submitted via POST<P>
1: entry{"method"} = post<BR>
2: entry{"name"} = form1<BR>
3: entry{"name"} = login<BR>
4: entry{"db"} = default<BR>
5: entry{"uid"} = <BR>
6: entry{"pw"} = admin<BR>
7: entry{"userID"} = admin<BR>
</BODY>
</HTML>
"


I believe it is not necessary to include the #method:"post" as with 
netLingo you define this by using postNetText instead of getNetText. 
Sending to different #name probably won't work as expected as in effect the 
latter will overwrite the former. In the html-example there is a 
#login:"logon" - pair while in your propList it is #name:"login".

This may be the problem.

best regards
daniel plaenitz

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to