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

Re: Basic authentication fails probably because of Base64 enconding



   You can't just add varying without changing the callers....

   Are you by chance calling your program from the command line?

   If so, you're getting bit by the 32-character default of the command
   processor.  The CP only allocates 32 characters for a string literal
   unless the literal is more than that.  But you're program is expecting
   50.  Thus the garbage at the end.

   The RPG archives have plenty of discussions on how to correct...

   1) build a command front end

   2) pass a literal with a length of 1 more than what the program expects

   call mypgm parm('[1]abc@xxxxxxx
   X')

   HTH,

   Charles

   On Tue, Dec 4, 2012 at 12:13 PM, <[2]Sunil_Gonchigar@xxxxxxxx> wrote:

     http_setAuth

References

   1. mailto:abc@xxxxxxx
   2. mailto:Sunil_Gonchigar@xxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------