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

R: Ftpapi Digest, Vol 58, Issue 5



I resolved the gskit trouble....
But I don't get login from pgm.... seems don?t use session cookies...
Someone can help with this??
There are some option for pgm creation???
I'm desperate!!!!!!!!!!!!!!!!!!
Thanks

-----Messaggio originale-----
Da: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Per conto di
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Inviato: lunedì 4 aprile 2011 21:19
A: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Oggetto: Ftpapi Digest, Vol 58, Issue 5

Send Ftpapi mailing list submissions to
	ftpapi@xxxxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
	ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
	ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Ftpapi digest..."


Today's Topics:

   1. httpapi Beta 1.24 (Giancarlo De Filippis)
   2. Question on function http_debug (Ha, William)
   3. Re: CCSID problem????? (Scott Klement)
   4. Re: Question on function http_debug (Michael Ryan)
   5. RE: httpapi Beta 1.24 (Mike Krebs)
   6. RE: Question on function http_debug (Mike Krebs)
   7. RE: Question on function http_debug (Ha, William)
   8. RE: Question on function http_debug (Ha, William)


----------------------------------------------------------------------

Message: 1
Date: Mon, 04 Apr 2011 11:53:12 +0200
From: Giancarlo De Filippis <gdefilippis@xxxxxxx>
Subject: httpapi Beta 1.24
To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <e68a85ef534080283ce07441f6ccf773@xxxxxxx>
Content-Type: text/plain; charset="utf-8"

  

Hy all..... 

i've this problem (my log) 

HTTPAPI Ver 1.24beta11
released 2010-09-09
OS/400 Ver V6R1M0

https_init():
entered
----------------------------------------------------------------------------
---------
Dump
of local-side certificate
information:
----------------------------------------------------------------------------
---------
-----BEGIN
CERTIFICATE-----
-----END CERTIFICATE-----
Serial Number: 01
Common
Name: user collaudo
Country: it
Org Unit: hbl
Org: webservices
Issuer
CN: collaudowb
Issuer Country: IT
Issuer State/Province: Perak
Issuer
Locality: Sitiawan
Issuer Org: HBL
Issuer Org Unit: webservices
Version:
03
not before: 20080408141514
not after: 20120103131514
pub key alg:
1.2.840.113549.1.1.4

http_url_post(): entered
http_persist_open():
entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS
resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain:
UCS.CED.LAN
DNS server found: 10.176.16.13
DNS server found:
10.176.16.14
DNS server found:
10.176.16.15
----------------------------------------------------------------------------
---------
Dump
of server-side certificate
information:
----------------------------------------------------------------------------
---------
Cert
Validation Code = 6000
-----BEGIN CERTIFICATE-----
-----END
CERTIFICATE-----
Serial Number: 45:F5:3B:C6
Common Name:
collaudowb.hbl.local
Country: IT
Issuer CN: collaudowb.hbl.local
Issuer
Country: IT
Version: 03
not before: 20070311123846
not after:
20170309123846
pub key alg: 1.2.840.113549.1.1.4

Protocol Used: TLS
Version 1
http_persist_post(): entered
http_long_ParseURL():
entered
do_oper(POST): entered
POST /pkmslogin.form HTTP/1.1
Host:
collaudowb.hbl.local
User-Agent: http-api/1.24
Content-Type:
application/x-www-form-urlencoded
Content-Length: 20
Cookie: $Version=0;
PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
$Path=/;

senddoc(): entered
login-form-type=cert
recvresp():
entered
HTTP/1.1 302 Moved Temporarily
connection: close
content-length:
1157
content-type: text/html
date: Mon, 04 Apr 2011 09:50:55
GMT
location: https://collaudowb.hbl.local/pkmscertpromptstagen
p3p:
CP="NON CUR OTPi OUR NOR UNI"
server: WebSEAL/6.1.1.1 (Build
110214)
cache-control: no-cache
pragma: no-cache
Set-Cookie:
PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
Path=/

SetError() ?13: HTTP/1.1 302 Moved Temporarily
recvresp(): end
with 302
recvdoc parms: identity 1157
header_load_cookies()
entered
cookie_read() entered.
read cookies in
/tmp/cookies.txt
cookie_parse() entered
cookie =
PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
Path=/
cookie attr
PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS
cookie
attr Path=/
cookie_dump() entered.
cookie file is
/tmp/cookies.txt
recvdoc(): entered
SETERROR() ?0:
(GSKIT) I/O:
DESCRITTORE NON VALIDO.
SSL_ERROR(406): (GSKIT) I/O: DESCRITTORE NON VALIDO.
SETERROR() ?44: COMMSSL_READ: READ:(GSKIT) I/O: DESCRITTORE NON VALIDO.
HTTP_CLOSE(): ENTERED 

This is my pgm: 

 eval rc =
http_url_post(
 'https://***********/pkmslogin.form' 
 : myPointer
 :
datasize
 : '/tmp/testpost.html' 
 : HTTP_TIMEOUT
 : HTTP_USERAGENT 

: 'application/x-www-form-urlencoded' ) 

someone can help me??


Thanks!!!!! 
-------------- next part --------------

   Hy all.....

   i've this problem (my log)

   HTTPAPI Ver 1.24beta11 released 2010-09-09
   OS/400 Ver V6R1M0
   https_init(): entered
   ----------------------------------------------------------------------
   ---------------
   Dump of local-side certificate information:
   ----------------------------------------------------------------------
   ---------------
   -----BEGIN CERTIFICATE-----
   -----END CERTIFICATE-----
   Serial Number: 01
   Common Name: user collaudo
   Country: it
   Org Unit: hbl
   Org: webservices
   Issuer CN: collaudowb
   Issuer Country: IT
   Issuer State/Province: Perak
   Issuer Locality: Sitiawan
   Issuer Org: HBL
   Issuer Org Unit: webservices
   Version: 03
   not before: 20080408141514
   not after: 20120103131514
   pub key alg: 1.2.840.113549.1.1.4
   http_url_post(): entered
   http_persist_open(): entered
   http_long_ParseURL(): entered
   DNS resolver retrans: 2
   DNS resolver retry  : 2
   DNS resolver options: x'00000136'
   DNS default domain: UCS.CED.LAN
   DNS server found: 10.176.16.13
   DNS server found: 10.176.16.14
   DNS server found: 10.176.16.15
   ----------------------------------------------------------------------
   ---------------
   Dump of server-side certificate information:
   ----------------------------------------------------------------------
   ---------------
   Cert Validation Code = 6000
   -----BEGIN CERTIFICATE-----
   -----END CERTIFICATE-----
   Serial Number: 45:F5:3B:C6
   Common Name: collaudowb.hbl.local
   Country: IT
   Issuer CN: collaudowb.hbl.local
   Issuer Country: IT
   Version: 03
   not before: 20070311123846
   not after: 20170309123846
   pub key alg: 1.2.840.113549.1.1.4
   Protocol Used: TLS Version 1
   http_persist_post(): entered
   http_long_ParseURL(): entered
   do_oper(POST): entered
   POST /pkmslogin.form HTTP/1.1
   Host: collaudowb.hbl.local
   User-Agent: http-api/1.24
   Content-Type: application/x-www-form-urlencoded
   Content-Length: 20
   Cookie: $Version=0;
   PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
   $Path=/;
   senddoc(): entered
   login-form-type=cert
   recvresp(): entered
   HTTP/1.1 302 Moved Temporarily
   connection: close
   content-length: 1157
   content-type: text/html
   date: Mon, 04 Apr 2011 09:50:55 GMT
   location: https://collaudowb.hbl.local/pkmscertpromptstagen
   p3p: CP="NON CUR OTPi OUR NOR UNI"
   server: WebSEAL/6.1.1.1 (Build 110214)
   cache-control: no-cache
   pragma: no-cache
   Set-Cookie:
   PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
   Path=/
   SetError() ?13: HTTP/1.1 302 Moved Temporarily
   recvresp(): end with 302
   recvdoc parms: identity 1157
   header_load_cookies() entered
   cookie_read() entered.
   read cookies in /tmp/cookies.txt
   cookie_parse() entered
   cookie =
   PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
   Path=/
   cookie attr
   PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS
   cookie attr Path=/
   cookie_dump() entered.
   cookie file is /tmp/cookies.txt
   recvdoc(): entered
   SetError() ?0:
   (GSKit) I/O: Descrittore non valido.
   ssl_error(406): (GSKit) I/O: Descrittore non valido.
   SetError() ?44: CommSSL_read:  read:(GSKit) I/O: Descrittore non
   valido.
   http_close(): entered


   This is my pgm:

    eval      rc = http_url_post(
              'https://***********/pkmslogin.form'
              : myPointer
              : datasize
              : '/tmp/testpost.html'
              : HTTP_TIMEOUT
              : HTTP_USERAGENT
              : 'application/x-www-form-urlencoded' )

   someone can help me??

   Thanks!!!!!

------------------------------

Message: 2
Date: Mon, 4 Apr 2011 13:11:36 -0400
From: "Ha, William" <William.Ha@xxxxxxxx>
Subject: Question on function http_debug
To: "'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	<2EA459672FF2704CA3D0D20A89BB688208B830B6F8@xxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Hi all,

I code http_debug(*ON) in my RPG program but there is no debug file under
the name of /tmp/httpapi_debug.txt when I run it and there is an error.
Anyone can help. Thanks


William



-------------- next part --------------

   Hi all,


   I code http_debug(*ON) in my RPG program but there is no debug file
   under the name of /tmp/httpapi_debug.txt when I run it and there is an
   error.

   Anyone can help. Thanks



   William

------------------------------

Message: 3
Date: Mon, 04 Apr 2011 12:38:19 -0500
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
Subject: Re: CCSID problem?????
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <4D9A020B.7060007@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

hi Stefano,

You are telling HTTPAPI to translate your data from EBCDIC to CCSID 819
(which is ISO-8859-1).  But you are telling the web service that your data
is in ISO-8859-15, which is a different character set than ISO-8859-1.


On 4/4/2011 7:31 AM, Stefano Busolo wrote:
>
>     Hi Scott!
>     I use HTTP API to communicate with a WS.
>
>
>     The API works very well but I have a problem with some special
>     characters (? ? ? ?).
>
>
>     I sended  this XML request
>
>     <tem:CorporateName2>adesso ? ? ? ? ? ?</tem:CorporateName2>
>
>
>     but the WebService has receive this
>
>     <tem:CorporateName2>adesso ? ? ? ? ? ?</tem:CorporateName2>
>
>
>
>     Note the ? ? ? ? instead of ? ? ? ?
>
>
>     Is this a CCSID problem??
>
>     How can I send an XML without any type of char conversion?
>
>
>     I attached a log of my XML request
>
>
>     Best regard
>
>
>
>     -------Stefano Busolo-------
>
>     Servizio Produzione Software plain ERP Commercio - Industria
>
>     mailto: [1]bu@xxxxxxxxxxxx
>
>     ______________________________________________________________________
>     _________
>
>     Gruppo ASI - Via della Croce Rossa, 42 - 35129 Padova
>
>     [2]http://www.plain.it - [3]mailto:info@xxxxxxxxxxxx  Tel. +39 049
>     8070030 - Fax +39 049 8078433
>
>
>     [4]IBM_BP_w
>
>     [5]MS_GCP_w
>
>
>     Questa e-mail ? da considerare strettamente riservata ai destinatari
>     specificati. Se il messaggio
>
>     ? stato ricevuto per errore, si prega avvisare il mittente e poi di
>     cancellare il messaggio.
>
>     ______________________________________________________________________
>     _________
>
>     E-mail sottoposta a scansione antivirus con Scanmail TrendMicro (
>     [6]http://www.antivirus.com ).
>
> References
>
>     1. mailto:bu@xxxxxxxxxxxx
>     2. http://www.plain.it/
>     3. mailto:info@xxxxxxxxxxxx
>     4.
http://www.plain.it/portalev2/a00_Base/default.aspx?sCD_Pagina=30374
>     5.
http://www.plain.it/portalev2/a00_Base/default.aspx?sCD_Pagina=30374
>     6. http://www.antivirus.com/
>
>
>
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -



------------------------------

Message: 4
Date: Mon, 4 Apr 2011 14:07:24 -0400
From: Michael Ryan <michaelrtr@xxxxxxxxx>
Subject: Re: Question on function http_debug
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <BANLkTim3C3wDQzcL5u6CCrs+_C1Qre3g_A@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Any security restrictions to creating a file in /tmp? Try creating a text
file from wrklnk or edtf.

On Mon, Apr 4, 2011 at 1:11 PM, Ha, William <William.Ha@xxxxxxxx> wrote:
>
> ? Hi all,
>
>
> ? I code http_debug(*ON) in my RPG program but there is no debug file 
> ? under the name of /tmp/httpapi_debug.txt when I run it and there is 
> an ? error.
>
> ? Anyone can help. Thanks
>
>
>
> ? William
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. ?To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>


------------------------------

Message: 5
Date: Mon, 4 Apr 2011 13:34:09 -0500
From: Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
Subject: RE: httpapi Beta 1.24
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <3DF08BA25872B644A1421B9F085B1829615A18B42D@xxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

(GSKIT) I/O:
DESCRITTORE NON VALIDO.
SSL_ERROR(406): (GSKIT) I/O: DESCRITTORE NON VALIDO.
SETERROR() ?44: COMMSSL_READ: READ:(GSKIT) I/O: DESCRITTORE NON VALIDO.

You are having a problem with GSKIT and/or security of GSKIT? Did you follow
the instructions in the README in QRPGLESRC?

------------------------------

Message: 6
Date: Mon, 4 Apr 2011 13:35:44 -0500
From: Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
Subject: RE: Question on function http_debug
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <3DF08BA25872B644A1421B9F085B1829615A18B42E@xxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

What is the error?
Do you have a /tmp directory?

> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi- 
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ha, William
> Sent: Monday, April 04, 2011 12:12 PM
> To: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: Question on function http_debug
> 
> Hi all,
> 
> I code http_debug(*ON) in my RPG program but there is no debug file 
> under the name of /tmp/httpapi_debug.txt when I run it and there is an 
> error.
> Anyone can help. Thanks
> 
> 
> William
> 
> 



------------------------------

Message: 7
Date: Mon, 4 Apr 2011 14:42:15 -0400
From: "Ha, William" <William.Ha@xxxxxxxx>
Subject: RE: Question on function http_debug
To: "'HTTPAPI and FTPAPI Projects'" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	<2EA459672FF2704CA3D0D20A89BB688208B830B6FA@xxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Hi Michael,

Yep that's the problem....many thanks

William 



-----Message d'origine-----
De?: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] De la part de Michael Ryan
Envoy??: lundi 4 avril 2011 14:07
??: HTTPAPI and FTPAPI Projects
Objet?: Re: Question on function http_debug

Any security restrictions to creating a file in /tmp? Try creating a text
file from wrklnk or edtf.

On Mon, Apr 4, 2011 at 1:11 PM, Ha, William <William.Ha@xxxxxxxx> wrote:
>
> ? Hi all,
>
>
> ? I code http_debug(*ON) in my RPG program but there is no debug file 
> ? under the name of /tmp/httpapi_debug.txt when I run it and there is 
> an ? error.
>
> ? Anyone can help. Thanks
>
>
>
> ? William
>
> ----------------------------------------------------------------------
> - 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
-----------------------------------------------------------------------


------------------------------

Message: 8
Date: Mon, 4 Apr 2011 15:19:23 -0400
From: "Ha, William" <William.Ha@xxxxxxxx>
Subject: RE: Question on function http_debug
To: "'HTTPAPI and FTPAPI Projects'" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	<2EA459672FF2704CA3D0D20A89BB688208B830B6FD@xxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Yes i do...the problem is the service program HTTPAPIR4 has the authority
*PUBLIC *USE instead of *CHANGE or higher. So it's a question of access
authority.

William Ha
Service de l'informatique (Dev.)
(450) 662-3300 poste 3025




-----Message d'origine-----
De?: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] De la part de Mike Krebs
Envoy??: lundi 4 avril 2011 14:36
??: HTTPAPI and FTPAPI Projects
Objet?: RE: Question on function http_debug

What is the error?
Do you have a /tmp directory?

> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi- 
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ha, William
> Sent: Monday, April 04, 2011 12:12 PM
> To: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: Question on function http_debug
> 
> Hi all,
> 
> I code http_debug(*ON) in my RPG program but there is no debug file 
> under the name of /tmp/httpapi_debug.txt when I run it and there is an 
> error.
> Anyone can help. Thanks
> 
> 
> William
> 
> 

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list digest.  To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


End of Ftpapi Digest, Vol 58, Issue 5
*************************************

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------