cURL / Mailing Lists / curl-users / Single Mail

curl-users

checkchoice java routine

From: Peter Berghmans <peter.berghmans_at_khm.be>
Date: Sat, 21 Apr 2001 19:00:34 +0200

Hi

I'm a CCNA trainer. Doing so I have to activate exams for my students on
http://cisco.netacad.net/cnacs/prot-doc/activate_exams.shtml?CLASS_ID=112897, a
password protected page. The page source is in attachement.

Problem is: i have to reactivate each exam after 8 hours. So I want to do some
kind of automatisation using curl.

As you can see in the source, the activation takes place by mouseclicks.

This is what i thought: in the pagesource you see things like:

<TD class=fill2><SPAN class=text><INPUT name=EXAM_0_ACT
onclick="checkChoice(document.activateexam.EXAM_0_ACT, 1)"
type=radio value=1> 1 Hr.</SPAN></TD> (checkchoice is a javascript routine)

So I the command was:
curl -u palmkes: -x proxy.pandora.be:8080 -
d "name=EXAM_0_ACT&onclick=checkChoice(document.activateexam.EXAM_0_ACT,1)
&type=radio%20checked&value=1" http://cisco.netacad.net/cnacs/prot-
doc/activate_exams.shtml?CLASS_ID=112897

You can find the server resonse below.

Is there a solution?

The server respons is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<LINK rel="stylesheet" type="text/css" href="../pub-doc/is_style.css"
title="instructor community style">
        <title>Instructor Community: Form Error</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>

<!-- PAGE HEADER -->
<span class="position1"><img src="../pub-doc/images/is_header1.gif" width=392
height=95 alt="" border="0"></span>
<span class="position2"><img src="../pub-doc/images/is_header2.gif" width=94
height=118 alt="" border="0" align="top"></span>
<span class="position3"><img src="../pub-doc/images/is_header3.gif" width=154
height=55 alt="" border="0" align="top"></span>
<span class="position4"><img src="../pub-doc/images/is_header4.gif" width=232
height=43 alt="" border="0"></span>

<img src="../pub-doc/images/space.gif" width=1 height=135 alt="" border="0">

<!-- LEFT NAVIGATION and GO BOX -->

<table width="640" cellspacing="0" cellpadding="0" border="0">
<tr>
        <td><img src="../pub-doc/images/space.gif" width=150 height=1 alt=""
border="0"></td>
        <td><img src="../pub-doc/images/space.gif" width=25 height=1 alt=""
border="0"></td>
        <td><img src="../pub-doc/images/space.gif" width=465 height=1 alt=""
border="0"></td>
</tr>

<tr>
<td background="../pub-doc/images/is_left_back.gif" valign="top">
<img src="../pub-doc/images/is_left_top.gif" width=150 height=4 alt=""
border="0" align="top"><br>
</td>

<!-- LEFT MARGIN -->
    <td><IMG SRC="../pub-doc/images/space.gif" BORDER=0 WIDTH=25 HEIGHT=1
ALT=""></td>

<!-- PAGE TITLE -->
        <td valign="top">
<span class="header1">Error Processing the Form</span><br>
<img SRC="../pub-doc/images/is_title_line.gif" alt="" border="0"><br>
<span class="text">Please return to the previous form using your browser's back
button and complete the required field(s).</span><br>

<!-- PAGE CONTENT -->
<FORM ACTION=POST>
<span class="textbold">Required field [FCOUNT] was not filled in.<br>
Required field [ACOUNT] was not filled in.<br>
</span>
</form>

Peter Berghmans
Docent informatica KHM campus de Ham

Instructor Community: Activate Exams

Activate Exams

Activate exams for class
VVKSO-0.



Exam Activation
CCNA Instructor Class Maintenance
CCNA Student Class Maintenance

Instructions: Please check the box and indicate the duration for each test you'd like to activate. Click the "Submit" button when you're finished. Or, if you want to specify a specific date, time, or student for exam activation, click the "Go" button for customized activation of that exam.

Exam Name Activate Duration Advanced
Activation
Semester 1 Chapter 1 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 2 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 3 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 4 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 5 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 6 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 7 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 8 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 9 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 10 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 11 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 12 - 14 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Chapter 15 1 Hr. 2 Hrs. 8 Hrs.
Semester 1 Final 1 Hr. 2 Hrs. 8 Hrs.
Course Feedback 1 Hr. 2 Hrs. 8 Hrs.


For assistance, email webmaster@cisco.netacad.net

Received on 2001-04-21