Comment URL string handler class object

Cecil

19+ years progress programming and still learning.
Hi

I was working on a project today which was using sockets and a need to write a simple class object which will break down all the component parts of a URL string, i.e. Host, port, query strings etc. Once it was completed I thought it was good enough to share with other OpenEdge developers. So I put it up on the GitHub

https://github.com/Jimbobnz/OpenEdge-URL-Handler
 

Cecil

19+ years progress programming and still learning.
Quick Update I've just realised that OpenEdge actually supports URL/URI as a class object. making my version obsolete.

Code:
USING OpenEdge.Net.URI.

DEFINE VARIABLE oURI        AS URI                 NO-UNDO.                          
                           
   
oURI = OpenEdge.Net.URI:Parse( "https://james:3vyn38fh6h5f873@somedomain.com:8083/patha/pathb/pathc?quaera=123&quaerb=456&quaerc=789#bonkers" ).
   
    MESSAGE
        oURI:BaseURI SKIP
        oURI:Scheme  SKIP
        oURI:USER    SKIP
        oURI:Password SKIP
        oURI:Host SKIP
        oURI:Port SKIP
        oURI:Path SKIP
        oURI:QueryString SKIP
        oURI:FRAGMENT SKIP
        oURI:RelativeURI
        VIEW-AS ALERT-BOX INFO.

1518571393495.png
 
Top