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

RE: Ftpapi Digest, Vol 79, Issue 19



Hello,
I am new at this and i am using httpapi, my question is:
I have a client certificate, but I do not have the CA certificate, is there
any way to specify that I want to use
this certificate(for this https communication) without validating it's CA? I
know that with DCM I can not do this or can I?

Thank you, very much
Serafim Caetano



-----Mensagem original-----
De: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Em nome de
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Enviada: sexta-feira, 24 de Maio de 2013 18:00
Para: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Assunto: Ftpapi Digest, Vol 79, Issue 19

Send Ftpapi mailing list submissions to
	ftpapi@xxxxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://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. Redirect on rc 302 (Debra Abelow)
   2. Problem Character conversion  (gilles.renne@xxxxxxxxxxxxxxxxx)


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

Message: 1
Date: Thu, 23 May 2013 20:14:26 -0400
From: Debra Abelow <Debra.Abelow@xxxxxxxxxxx>
To: "ftpapi@xxxxxxxxxxxxxxxxxxxxxx" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Redirect on rc 302
Message-ID:
	
<31B87A2FB45E554C9C130C048EFA2D0B102B996164@xxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Hello,
Is it OK to use the redir in the following way?
I'm asking because Scott always refers to doing a get after an rc 302 is
received. I would like to parse the incoming response rather than write it
to the IFS.

rc = http_url_post_xml(%trim(fcdire)
                      : %addr(SOAP) + 2
                      : %len(SOAP)
                      : *NULL
                      : %paddr(ParseXml)
                      : *NULL );

   select;
     // request to redirect to a differenet link
     when (rc = 302 or rc = 303);
       url= http_redir_loc();
       rc = http_url_post_xml(%trim(url)
                            : %addr(SOAP) + 2
                            : %len(SOAP)
                            : *NULL
                            : %paddr(ParseXml)
                            : *NULL );

Thanks for your help,
Debbie Abelow
-------------- next part --------------
   Hello,

   Is it OK to use the redir in the following way?

   I'm asking because Scott always refers to doing a get after an rc 302
   is received. I would like to parse the incoming response rather than
   write it to the IFS.


   rc = http_url_post_xml(%trim(fcdire)

                         : %addr(SOAP) + 2

                         : %len(SOAP)

                         : *NULL

                         : %paddr(ParseXml)

                         : *NULL );


      select;

        // request to redirect to a differenet link

        when (rc = 302 or rc = 303);

          url= http_redir_loc();

          rc = http_url_post_xml(%trim(url)

                               : %addr(SOAP) + 2

                               : %len(SOAP)

                               : *NULL

                               : %paddr(ParseXml)

                               : *NULL );


   Thanks for your help,

   Debbie Abelow

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

Message: 2
Date: Fri, 24 May 2013 09:08:10 +0200
From: gilles.renne@xxxxxxxxxxxxxxxxx
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem Character conversion
Message-ID:
	
<OF74A60A24.B175AC65-ONC1257B75.0025414C-C1257B75.00273362@LocalDomain>
	
Content-Type: text/plain; charset="iso-8859-1"



hi

 I try to send characters ? which is spanish character this character is in
CCSID 37

but when i send it to an external web service it retrieve ??

see the http_debug
(See attached file: httpapi_debug-txt.zip)
Send :<tns:Input>AM          04 ALMER?A       .</tns:Input>
Receive : <Output>AM          04 ALMER??A       .</Output>

the character is good

i try to change ccsid with HTTP_setccsids(1208:37) here
			 // to the encoding of the SOAP envelope
			 //HTTP_SetCCSIDs(getPostCcsid(): HTTP_EBCDIC);
 			HTTP_SetCCSIDs(1208:37);

 			// Create and open data source to store the request
message
 			hDataSource = ManagedMemoryDataSource_new
(1024*1024*4); // 4 MB

			 contentType = 'text/xml';
but is is not working

do i need to translate the characters before sending it ??
how using http_xlate function ?


regards

Gilles
This message contains confidential information. To know more, please click
on the following link: http://disclaimer.bureauveritas.com   
-------------- next part --------------
   hi
    I try to send characters ? which is spanish character
   this character is in CCSID 37
   but when i send it to an external web service it retrieve ??
   see the http_debug
   (See attached file: httpapi_debug-txt.zip)
   Send :<tns:Input>AM          04 ALMER?A       .</tns:Input>
   Receive : <Output>AM          04 ALMER??A       .</Output>
   the character is good
   i try to change ccsid with HTTP_setccsids(1208:37) here
   // to the encoding of the SOAP envelope
   //HTTP_SetCCSIDs(getPostCcsid(): HTTP_EBCDIC);
     HTTP_SetCCSIDs(1208:37);

     // Create and open data source to store the request message
     hDataSource = ManagedMemoryDataSource_new(1024*1024*4); // 4 MB

   contentType = 'text/xml';
   but is is not working
   do i need to translate the characters before sending it ??
   how using http_xlate function ?
   regards
   Gilles
   This message contains confidential information. To know more, please
   click on the following link: http://disclaimer.bureauveritas.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpapi_debug-txt.zip
Type: application/zip
Size: 1208 bytes
Desc: not available
URL:
<http://scottklement.com/pipermail/ftpapi/attachments/20130524/9969789e/atta
chment.zip>

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

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


End of Ftpapi Digest, Vol 79, Issue 19
**************************************




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