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

Re: HttpApi Urgent Help **



   You may need to run something like Fiddler to monitor the network
   traffic back and forth the fully replicate the transactions back and
   forth.

   Why are you trying to automate such a complicated form? Can't you work
   with the site and get a web service instead? That would be much easier
   to work with in the long run. And less susceptible to changes to the
   forms breaking whatever you are doing.

   --
   Mike Wills
   [1]http://mikewills.me
   On Tue, Jan 3, 2012 at 4:14 PM, Giovanni De Cristoforo
   <[2]atena3001@xxxxxxx> wrote:

     Hello Scott,
     Thanks a lot for your msg.
     I understand that HTTPAPI is not a browser but the form in the
     website seems to be simple.
     The Javascripts included have the fuction to check data only.
     The problem is how to rich this form page.
     The browser behavior after accessed to the first url
     [3]http://www.website.net/prereg/program.do?e=110&t=10&c=aBcDeFgHi
     is to redirect to page
     [4]http://www.website.net/prereg/EspFormSend.do
     and during this step the server does a sort of authentication.
     I have replicated in my rpg the same behavior including the redirect
     but instead to get the page of the form
     I receive back a new page showing that there has been an error.
     I wonder if there is a problem with the encoding or something else
     that I cannot understand.
     The form page in question is used to issue free tickets for an
     important trade exhinition and we would like to bind it with our
     system for automatic forward.
     As it is really diffiscult to show exacltly what happen with these
     url's, forms and httpapi
     don't you mind to take a look at my rpg, real url's, etc.
     Obviously I shell send all this in a private message as there are
     private information that I cannot disclose to the world.
     Thanks
     Alex
     > Date: Tue, 3 Jan 2012 12:26:19 -0600
     > From: [5]sk@xxxxxxxxxxxxxxxx
     > To: [6]ftpapi@xxxxxxxxxxxxxxxxxxxxxx
     > Subject: 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][7]http://www.website.net/prereg/program.do?e=110&t=10&c=aBcDeFgHi
   >>     2) borwser respond with the page
   >>     [2][8]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:

   >>     >     onSubmit="return cpmsg(1);" style="display:inline;">
   >>
   >>

     >>     Single Email Address:
     >>
     >>     N. of Codes Requested:
     >>     >     maxlength="4">
     >>     Recipient Name (optional):
     >>     >     maxlength="100">

   >>
   >>
   >
   > 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][9]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:
   > [10]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   [11]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------

References

   1. http://mikewills.me/
   2. mailto:atena3001@xxxxxxx
   3. http://www.website.net/prereg/program.do?e=110&t=10&c=aBcDeFgHi
   4. http://www.website.net/prereg/EspFormSend.do
   5. mailto:sk@xxxxxxxxxxxxxxxx
   6. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   7. http://www.website.net/prereg/program.do?e=110&t=10&c=aBcDeFgHi
   8. http://www.website.net/prereg/EspFormSend.do
   9. http://www.website.net/prereg/EspFormSend.do
  10. http://www.scottklement.com/mailman/listinfo/ftpapi
  11. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------