Can somebody who has access to the runtime internals (I'm thinking Harm, but it could be somebody else), tell me what the following properties of the cHttpTransfer class actually do?


  • psUsername
  • psPassword
  • psProxy


The reason that I ask is that I originally believed that psUsername and psPassword were doing the Basic Auth thing, but when I look at that in a DataFlex web service (a slightly amended oDemoSimpleRestService from the sacred texts) it doesn't look as if it does that at all. Messing around trying to capture what it does do caused me to also question the functioning of psProxy in this class.

Code added to oDemoSimpleWebService:
Code:
Procedure OnPreRequest String sVerb String sPath
    String  sCreds
    
    Get HttpRequestHeader "Authorization" to sCreds  // Nothing turns up here when called from a DF client program using 
                                                     // psUsername and psPassword, but does using a properly constructed Authorization
                                                     // HTTP header, or a call from Postman using Basic Auth (same thing)
End_Procedure

Mike