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

Re: encode URL when calling web service from RPGLE using HTTPAPI



   Scott,

   I don't know if it is relevant in this case, but I believe that you
   only escapes your

   URL's (in ASCII) and not encode them (in UTF-8) like

   Test = 'æøå'

   escaped: %E6%F8%E5 � � � � � � � � � � �   �escapeURI(text);� � �
   encoded: %C3%A6%C3%B8%C3%A5 � ��escapeURI(encodeUTF8(text));

   or am I wrong ?
   On Wed, Jun 27, 2012 at 1:06 PM, Ashish Kulkarni
   <[1]ashish.kulkarni13@xxxxxxxxx> wrote:

     � Hi
     � How can i find out what is the current version of HTTPAPI i have
     � installed on AS400 machined
     � Ashish

   � On Tue, Jun 26, 2012 at 3:12 AM, Scott Klement
   <[1][2]sk@xxxxxxxxxxxxxxxx>
   � wrote:
   � � Hello Ashish,
   � � On the current release of HTTPAPI, blanks are automatically
   encoded
   � � if they are in the URL.
   � � The Webforms/URLEncoder support in HTTPAPI will also translate
   them,
   � � for example, if you are encoding form data to be sent via the
   POST
   � � method.
   � � Good luck!
   � On 6/25/2012 12:44 PM, Ashish Kulkarni wrote:
   � � � �I have been using HTTPAPI to call java web services, i have
   a
   � � situation
   � � � �where i need to encode URL in UTF-8 format because there are
   � � blank
   � � � �spaces in the data i am sending to web service using get
   method
   � � � �Is there any subroutine to encode this data so call to web
   � � service will
   � � � �work
   � �   --------------------------------------------------------------------
   � � ---
   � � This is the FTPAPI mailing list. �To unsubscribe, please go to:

     � � [2][3]http://www.scottklement.com/mailman/listinfo/ftpapi
     � �     --------------------------------------------------------------------
     � � ---
     � --
     � Ashish
     � [3][4]www.ayurwellness.com
     � [4][5]www.mysoftwareneeds.com
     References
     � 1. mailto:[6]sk@xxxxxxxxxxxxxxxx
     � 2. [7]http://www.scottklement.com/mailman/listinfo/ftpapi
     � 3. [8]http://www.ayurwellness.com/
     � 4. [9]http://www.mysoftwareneeds.com/
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list. �To unsubscribe, please go to:
     [10]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

   --
   Regards,
   Henrik Rützou
   �   [11]http://powerEXT.com
   �   [plogofull200.png]

References

   1. mailto:ashish.kulkarni13@xxxxxxxxx
   2. mailto:sk@xxxxxxxxxxxxxxxx
   3. http://www.scottklement.com/mailman/listinfo/ftpapi
   4. http://www.ayurwellness.com/
   5. http://www.mysoftwareneeds.com/
   6. mailto:sk@xxxxxxxxxxxxxxxx
   7. http://www.scottklement.com/mailman/listinfo/ftpapi
   8. http://www.ayurwellness.com/
   9. http://www.mysoftwareneeds.com/
  10. http://www.scottklement.com/mailman/listinfo/ftpapi
  11. http://powerext.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------