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

Re: Basic authentication fails probably because of Base64 enconding



I think you are using the C for constant, while you should be using a S for stand alone field.


----- Original Message ----- From: "Charles Wilt" <charles.wilt@xxxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, December 04, 2012 6:59 PM
Subject: 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('abc@xxxxxxx                                       X')

HTH,
Charles





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

http_setAuth



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


-----------------------------------------------------------------------
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
-----------------------------------------------------------------------