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

Re: question about example 2



It was removed because it is an awful example, and there is another UPS example that is much better.

On 3/24/2015 1:42 PM, Thomas Raddatz wrote:
Thank you Larry and Russ. You both send it to me. I wonder why it is no
longer included with HTTPAPI. It does not look that bad. Just kidding.

Thanks,

Thomas.

Am 24.03.2015 um 15:58 schrieb Larry Kleinman:
    Hi Thomas - I've attached the source for EXAMPLE5.
    I can't figure out how to use it to POST data to the web form, and I
    suspect that it involves using some of the code in EXAMPLE2, which I've
    also attached.   I guess I am trying to combine the two of them into
    something which will POST several fields to a web form (like EXAMPLE 2
    does with fromAddr, subject, and message) , and put what was returned
    by the web site into data that I can manipulate (like EXAMPLE 5 foes
    with retdata)
    Larry Kleinman
    Kleinman Associates, Inc.
    212-949-6469
    From:        Thomas Raddatz <thomas.raddatz@xxxxxx>
    To:        "'HTTPAPI and FTPAPI Projects'"
    <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
    Date:        03/24/2015 08:46 AM
    Subject:        AW: question about example 2
    Sent by:        ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
      __________________________________________________________________

    Larry,
    It was great if you could send the source to me, since I do not have an
    archive of 1.23. The oldest archive I have is 1.25.
    Thomas.
    -----Ursprüngliche Nachricht-----
    Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
    [[1]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Larry
    Kleinman
    Gesendet: Dienstag, 24. März 2015 13:28
    An: HTTPAPI and FTPAPI Projects
    Cc: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
    Betreff: Re: question about example 2
    Yep, I am using the same version.   Thomas, do you need me to send you
    the
    source, or can you find it in an archive of version 1.23
    Larry Kleinman
    Kleinman Associates, Inc.
    212-949-6469
    From:   Thomas Bishop <tbishop2@xxxxxxxxxx>
    To:     "ftpapi@xxxxxxxxxxxxxxxxxxxxxx"
    <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
    Date:   03/24/2015 08:08 AM
    Subject:        Re: question about example 2
    Sent by:        ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
    My copy of EXAMPLE5 also uses "raw".  Version 1.23
    Comment at top of EXAMPLE5 source code states:
    * This performs the same example as EXAMPLE4, except that it
    * uses the "raw" versio of http_url_post(). The advantage is
    * that data is received directly into a variable in the program
    * instead of writing it to the IFS.
    Source code contains the following:
    c                   eval      rc=http_url_post_raw(
    c                             'https://wwwcie.ups.com/ups.app' +
    c                             '/xml/Track':
    c                              %addr(data): %len(%trimr(data)):
    c                              1: %paddr('INCOMING'))
    c                   if        rc <> 1
    c                   eval      msg = http_error
    c                   dsply                   msg
    c                   return
    c                   endif
    The information transmitted is intended only for the person or entity
    to which it is addressed and may contain CONFIDENTIAL material.  If you
    receive this material/information in error, please contact the sender
    and delete or destroy the material/information.
    -----------------------------------------------------------------------
    This is the FTPAPI mailing list.  To unsubscribe, please go to:
    [2]http://www.scottklement.com/mailman/listinfo/ftpapi
    -----------------------------------------------------------------------
    --
    IMPORTANT NOTICE:
    This email is confidential, may be legally privileged, and is for the
    intended recipient only. Access, disclosure, copying, distribution, or
    reliance on any of it by anyone else is prohibited and may be a
    criminal offence. Please delete if obtained in error and email
    confirmation to the sender.
    -----------------------------------------------------------------------
    This is the FTPAPI mailing list.  To unsubscribe, please go to:
    [3]http://www.scottklement.com/mailman/listinfo/ftpapi
    -----------------------------------------------------------------------

References

    1. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
    2. http://www.scottklement.com/mailman/listinfo/ftpapi
    3. 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
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
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
-----------------------------------------------------------------------