I'm working to interface with our data retrieval engine. I can submit a job perfectly fine using a POST request like this:
request = New HTTP Request(
url( "http://fc8tdbitmapconvs07:11111/daas/" ),
Method( "POST" ),
Json( Load Text File( ctfn ) )
);
data = request << Send;
'data' contains the response from the server and all is well.
-------------------------------------------
However, when I try and check on the status of the running job with a 'GET' request the json does not get included in the HTTP request to the server:
Attempt#1:
request2 = New HTTP Request(
url( "http://fc8tdbitmapconvs07:11111/daas/status/" ),
Method( "GET" ),
headers( {"Content-Type:application/json"} ), // add your custom headers
Json( Load Text File( ctfn2 ) )
);
data2 = request2 << Send;
Attempt#2
request2 = New HTTP Request(
url( "http://fc8tdbitmapconvs07:11111/daas/status/" ),
Method( "GET" ),
headers( {"Content-Type:application/json"} ) // add your custom headers
);
request2 <<Json( Load Text File( ctfn2 ) );
data2 = request2 << Send;
In both cases the JSON fails to load. The header information makes it to the server just fine but the spot where the JSON should be in the request is empty. What am I missing?
Thanks