cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re[2]: submit problem

From: Brano <2ge_at_2ge.sk>
Date: Thu, 3 Jul 2003 09:54:24 +0200

>> <A class=send href="javascript:document.forms.form.submit();">Yes, I
>> agree</A>

DS> It is still possible to do with curl, only a little harder. You need to figure
DS> out how that scripting piece works, or you can capture your browser's
DS> submission and see how it sends it off.

hm, which program can I use, to capture (sniff) which data are sending
to server ?

DS> In this case above, I figure that piece of script simply submits the named
DS> form when the user clicks on the link

yes, it works, without no problems, but I have more complicated
scripts, and those arent working, for example:

<FORM action=some.url.adress method=post name=gate onsubmit=send()>
<INPUT name=toNick size=60 tabIndex=1>
<INPUT name=TxtSubj size=60 tabIndex=2>
<TEXTAREA cols=60 name=Txt onkeyup=Count() rows=20 tabIndex=2
CONTENTEDITABLE="true"></TEXTAREA>
<P><B>You have <INPUT maxLength=4 name=chars readOnly size=4> chars</B></P>
<INPUT align=absMiddle border=0 class=butt name=send type=submit value=Send>&nbsp;</TD>

and send() looks:

// ######################################
// write value into hidden
// ######################################
function send()
{
        Mess=Edit.document.body.innerHTML;
        document.all.HEdit.value=Mess;
        return true;
}

any help how to figure out ?

Daniel, thanks for superb support!

-- 
[ Original: mid:Pine.LNX.4.55.0307022314130.7666_at_linux3.contactor.se ]
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Received on 2003-07-03