[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HttpApi Urgent Help **



Hello,

> Well, the last purpose of this set of programs is to access to a
> website page which contains 4 forms and use only one.

Website??  Please note that HTTPAPI isn't a browser.  If the website is 
sufficiently simple, you may be able to replicate the browser's behavior 
in your program -- but if it's complex, you may find this task to be 
overwhelming.

HTTPAPI is a simple tool for sending HTTP requests, and receiving the 
responses.  While a browser also does this, a browser does many other 
things, including interpreting/rendering HTML, JavaScript and CSS. 
HTTPAPI makes no attempt to do those things.


>     1) access to:
>     [1]http://www.website.net/prereg/program.do?e=110&t=10&c=aBcDeFgHi
>     2) borwser respond with the page
>     [2]http://www.website.net/prereg/EspFormSend.do containing 4 forms.

What's the point of accessing that site?  What does it accomplish?  Do 
you need to get information from it?  Remember, HTTPAPI isn't going to 
display the screen, so if the point is to display a form for a user to 
see, HTTPAPI isn't going to help you.


>     3) fill the fields in the 4th form and submit. Here follow the form:
>     <form name="femail1" action="/prereg/programSendSingleEmail.do"
>     onSubmit="return cpmsg(1);" style="display:inline;">
>     <input type="hidden" name="ExsMsgit">
>     <input type="hidden" name="ExsMsgen">
>     Single Email Address:&nbsp;
>     <input type="text" class="Text1" name="Email" size="10" maxlength="50">
>     N. of Codes Requested:&nbsp;
>     <input type="text" class="Text1" name="Num" size="4"
>     maxlength="4">&nbsp;&nbsp;<br />
>     Recipient Name (optional):&nbsp;
>     <input type="text" class="input" name="RecName" style="width:150px"
>     maxlength="100">&nbsp;
>     <input type="submit" value="Invia" class="TESTO">
>     </form>

This form has some JavaScript coded in it.  HTTPAPI won't do that.  You 
need to figure out what the JavaScript code does, and replicate that 
behavior in your RPG code.


>
>     4) browser respond with the same page
>     [3]http://www.website.net/prereg/EspFormSend.do  but with a text
>     updated.
>

And....?  Do you need to do something with that text in your program?
Please be a bit more explicit about how these things relate to your RPG 
program.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------