Hello, this is my first attempt at using the Request Document WITH DATA statement. If I comment out the WITH DATA lines, I get a 200 and parse the document, no problem. But if I try it WITH DATA as in the code below, I get the 401 response. Is it my code or do I need something else done to the file permissions or access? Thank you.
HELLO
#RC: 401
HTTP RESPONSE 401 RECEIVED
(which means access denied).
------code snippet below----------------
ASSIGN #FROM =
‘https://dpdev1.dp.utexas.edu/nlogon/wci/sample.xml’
**
WRITE ‘HELLO’
**
COMPRESS
‘<?xml version="1.0" encoding="ISO-8859-1" ?>’
‘’
’ ’
’ Gambardella, Missy’
’ XML Developer Guide’
’ Agriculture’
’ 44.95’
‘<publish_date>2000-10-01</publish_date>’
‘An in-depth look at driving farm tractors’
‘with XML.’
‘’
‘’
INTO #DOCUMENT
REQUEST DOCUMENT FROM #FROM
WITH
DATA ALL #DOCUMENT
RETURN
PAGE #PAGE
RESPONSE #RC
GIVING #RTERR
**
WRITE ‘=’ #RC
IF #RC NE 200 /* TEST FOR HTTP RESPONSE 200 = ‘OK’
WRITE ‘HTTP RESPONSE’ #RC ‘RECEIVED’
ESCAPE ROUTINE
END-IF
*
…