[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: question about example 2
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
ÿþ 5 7 6 1 W D S V 6 R 1 M 0 0 8 0 2 1 5 S E U S O U R C E L I S T I N G 0 3 / 2 4 / 1 5 1 0 : 4 8 : 4 7 K A N Y C 8 0 0 P A G E 1
S O U R C E F I L E . . . . . . . L I B H T T P / Q R P G L E S R C
M E M B E R . . . . . . . . . E X A M P L E 2
S E Q N B R * . . . + . . . 1 . . . + . . . 2 . . . + . . . 3 . . . + . . . 4 . . . + . . . 5 . . . + . . . 6 . . . + . . . 7 . . . + . . . 8 . . . + . . . 9 . . . + . . . 0
1 0 0 H D F T A C T G R P ( * N O ) A C T G R P ( * N E W ) B N D D I R ( ' H T T P A P I ' ) 0 3 / 2 3 / 0 6
2 0 0 1 1 / 0 3 / 0 4
3 0 0 * 1 1 / 0 3 / 0 4
4 0 0 * W h e n f o r m d a t a i s s e n t t o a w e b b r o w s e r , i t o f t e n h a s t o b e 0 8 / 2 3 / 0 7
5 0 0 * ' e n c o d e d ' . H T T P A P I c o n t a i n s s o m e r o u t i n e s c a l l e d ' W E B F O R M ' 0 8 / 2 3 / 0 7
6 0 0 * r o u t i n e s t o h e l p y o u w i t h t h a t e n c o d i n g . 0 8 / 2 3 / 0 7
7 0 0 * 1 1 / 0 3 / 0 4
8 0 0 * T h i s d e m o n s t r a t e s u s i n g H T T P A P I ' s W E B F O R M f u n c t i o n s 0 8 / 2 3 / 0 7
9 0 0 * t o s u b m i t a w e b f o r m . 1 1 / 0 3 / 0 4
1 0 0 0 * 1 1 / 0 3 / 0 4
1 1 0 0 * N o t e t h a t t h i s p r o g r a m p e r f o r m s t h e s a m e f u n c t i o n t h a t y o u r 1 1 / 0 3 / 0 4
1 2 0 0 * w e b b r o w s e r w o u l d i f y o u p o i n t e d i t t o : 1 1 / 0 3 / 0 4
1 3 0 0 * h t t p : / / w w w . s c o t t k l e m e n t . c o m / c o m m e n t / 1 1 / 0 3 / 0 4
1 4 0 0 1 0 / 2 1 / 0 1
1 5 0 0 / d e f i n e W E B F O R M S 0 8 / 2 3 / 0 7
1 6 0 0 D / c o p y q r p g l e s r c , h t t p a p i _ h 0 3 / 2 3 / 0 6
1 7 0 0 1 0 / 2 1 / 0 1
1 8 0 0 D c m d p r e x t p g m ( ' Q C M D E X C ' ) 1 0 / 2 1 / 0 1
1 9 0 0 D c o m m a n d 2 0 0 A c o n s t 1 0 / 2 1 / 0 1
2 0 0 0 D l e n g t h 1 5 P 5 c o n s t 1 0 / 2 1 / 0 1
2 1 0 0 1 0 / 2 1 / 0 1
2 2 0 0 D C R L F C C O N S T ( x ' 0 D 2 5 ' ) 1 0 / 2 1 / 0 1
2 3 0 0 D r c s 1 0 I 0 1 0 / 2 1 / 0 1
2 4 0 0 D m s g s 5 2 A 1 0 / 2 1 / 0 1
2 5 0 0 1 1 / 0 3 / 0 4
2 6 0 0 D F o r m s l i k e ( W E B F O R M ) 0 8 / 2 3 / 0 7
2 7 0 0 D f r o m A d d r s 1 0 0 A v a r y i n g 1 1 / 0 3 / 0 4
2 8 0 0 D S u b j e c t s 1 0 0 A v a r y i n g 1 1 / 0 3 / 0 4
2 9 0 0 D M e s s a g e s 1 0 0 0 A v a r y i n g 1 1 / 0 3 / 0 4
3 0 0 0 D m y P o i n t e r s * 1 1 / 0 3 / 0 4
3 1 0 0 D d a t a S i z e s 1 0 I 0 1 1 / 0 3 / 0 4
3 2 0 0 1 1 / 0 3 / 0 4
3 3 0 0 * * 1 1 / 0 3 / 0 4
3 4 0 0 * * C H A N G E T H I S T O Y O U R E - M A I L A D D R E S S : 1 1 / 0 3 / 0 4
3 5 0 0 * * 1 1 / 0 3 / 0 4
3 6 0 0 c e v a l F r o m A d d r = ' e x a m p l e 2 @ s c o t t k l e m e n t . c o m ' 0 4 / 2 6 / 0 7
3 7 0 0 1 1 / 0 3 / 0 4
3 8 0 0 * * 1 1 / 0 3 / 0 4
3 9 0 0 * * C H A N G E T H I S T O T H E S U B J E C T Y O U ' D L I K E S E N T T O M E : 1 1 / 0 3 / 0 4
4 0 0 0 * * 1 1 / 0 3 / 0 4
4 1 0 0 c e v a l S u b j e c t = ' E X A M P L E 2 f r o m H T T P A P I . ' 1 1 / 0 3 / 0 4
4 2 0 0 1 1 / 0 3 / 0 4
4 3 0 0 * * 1 1 / 0 3 / 0 4
4 4 0 0 * * C H A N G E T H I S T O T H E M E S S A G E Y O U ' D L I K E S E N T T O M E : 1 1 / 0 3 / 0 4
4 5 0 0 * * 1 1 / 0 3 / 0 4
4 6 0 0 c e v a l M e s s a g e = ' H i S c o t t ! ' + C R L F + 1 1 / 0 3 / 0 4
4 7 0 0 c ' J u s t a n o t e t o t e l l y o u t h a t I ' ' m ' + 1 1 / 0 3 / 0 4
4 8 0 0 c ' t e s t i n g o u t t h e E X A M P L E 2 p r o g r a m i n ' + 1 1 / 0 3 / 0 4
4 9 0 0 c ' H T T P A P I . I f y o u r e c e i v e t h i s , i t ' + 1 1 / 0 3 / 0 4
5 0 0 0 c ' m u s t w o r k ! ' + C R L F 1 1 / 0 3 / 0 4
5 1 0 0 1 1 / 0 3 / 0 4
5 2 0 0 1 1 / 0 3 / 0 4
5 3 0 0 * * 1 1 / 0 3 / 0 4
5 7 6 1 W D S V 6 R 1 M 0 0 8 0 2 1 5 S E U S O U R C E L I S T I N G 0 3 / 2 4 / 1 5 1 0 : 4 8 : 4 7 K A N Y C 8 0 0 P A G E 2
S O U R C E F I L E . . . . . . . L I B H T T P / Q R P G L E S R C
M E M B E R . . . . . . . . . E X A M P L E 2
S E Q N B R * . . . + . . . 1 . . . + . . . 2 . . . + . . . 3 . . . + . . . 4 . . . + . . . 5 . . . + . . . 6 . . . + . . . 7 . . . + . . . 8 . . . + . . . 9 . . . + . . . 0
5 4 0 0 * * W h e n a p r o g r a m e m u l a t e s a f o r m o n a n H T M L p a g e , i t ' s c a l l e d 0 8 / 2 3 / 0 7
5 5 0 0 * * a ' w e b f o r m ' i n H T T P A P I . Y o u m u s t f i r s t o p e n a n e w w e b 0 8 / 2 3 / 0 7
5 6 0 0 * * f o r m , a n d t h e n s e t v a r i a b l e s i n i t : 0 8 / 2 3 / 0 7
5 7 0 0 * * 1 1 / 0 3 / 0 4
5 8 0 0 C e v a l F o r m = W E B F O R M _ o p e n 0 8 / 2 3 / 0 7
5 9 0 0 1 1 / 0 3 / 0 4
6 0 0 0 c c a l l p W E B F O R M _ S e t V a r ( F o r m : ' f r o m ' : f r o m A d d r ) 0 8 / 2 3 / 0 7
6 1 0 0 c c a l l p W E B F O R M _ S e t V a r ( F o r m : ' s u b j e c t ' : s u b j e c t ) 0 8 / 2 3 / 0 7
6 2 0 0 c c a l l p W E B F O R M _ S e t V a r ( F o r m : ' C o m m e n t ' : m e s s a g e ) 0 8 / 2 3 / 0 7
6 3 0 0 1 0 / 2 1 / 0 1
6 4 0 0 * * 1 1 / 0 3 / 0 4
6 5 0 0 * * T h e W E B F O R M _ p o s t D a t a ( ) r o u t i n e r e t r i e v e s d a t a s u i t a b l e f o r 0 8 / 2 3 / 0 7
6 6 0 0 * * t h e h t t p _ u r l _ p o s t ( ) A P I . ( t h e r e ' s a l s o a W E B F O R M _ g e t D a t a ( ) 0 8 / 2 3 / 0 7
6 7 0 0 * * i f y o u n e e d t o c a l l H T T P _ u r l _ g e t ) . 0 8 / 2 3 / 0 7
6 8 0 0 * * 1 1 / 0 3 / 0 4
6 9 0 0 c c a l l p W E B F O R M _ p o s t D a t a ( F o r m : m y P o i n t e r 0 8 / 2 3 / 0 7
7 0 0 0 c : d a t a S i z e ) 1 1 / 0 3 / 0 4
7 1 0 0 1 1 / 0 3 / 0 4
7 2 0 0 * * 1 1 / 0 3 / 0 4
7 3 0 0 * * T h e h t t p _ u r l _ p o s t ( ) f u n c t i o n d o e s a n H T T P P O S T o p e r a t i o n 1 1 / 0 3 / 0 4
7 4 0 0 * * s e n d i n g a n y d a t a a t t h e p o i n t e r y o u s p e c i f y . 1 1 / 0 3 / 0 4
7 5 0 0 * * 1 1 / 0 3 / 0 4
7 6 0 0 * * T h e r e s u l t s , i n t h i s c a s e , a r e s a v e d t o t h e I F S i n a f i l e 1 1 / 0 3 / 0 4
7 7 0 0 * * c a l l e d ' / t m p / t e s t p o s t . h t m l ' 1 1 / 0 3 / 0 4
7 8 0 0 * * 1 1 / 0 3 / 0 4
7 9 0 0 c e v a l r c = h t t p _ u r l _ p o s t ( 1 0 / 2 1 / 0 1
8 0 0 0 c ' h t t p : / / w w w . s c o t t k l e m e n t . c o m / c g i - b i n / ' + 1 1 / 0 3 / 0 4
8 1 0 0 c ' e m a i l _ c o m m e n t . c g i ' 1 1 / 0 3 / 0 4
8 2 0 0 c : m y P o i n t e r 1 1 / 0 3 / 0 4
8 3 0 0 c : d a t a S i z e 1 1 / 0 3 / 0 4
8 4 0 0 c : ' / t m p / t e s t p o s t . h t m l ' 1 1 / 2 1 / 0 7
8 5 0 0 c : H T T P _ T I M E O U T 1 1 / 2 1 / 0 7
8 6 0 0 c : H T T P _ U S E R A G E N T 1 1 / 2 1 / 0 7
8 7 0 0 c : ' a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d ' ) 1 1 / 2 1 / 0 7
8 8 0 0 0 4 / 0 9 / 0 7
8 9 0 0 c i f r c = 3 0 2 0 4 / 0 9 / 0 7
9 0 0 0 c e v a l r c = h t t p _ u r l _ g e t ( h t t p _ r e d i r _ l o c 0 9 / 0 4 / 0 7
9 1 0 0 c : ' / t m p / t e s t p o s t . h t m l ' ) 0 4 / 0 9 / 0 7
9 2 0 0 c e n d i f 0 4 / 0 9 / 0 7
9 3 0 0 1 0 / 2 1 / 0 1
9 4 0 0 c i f r c <