aboutsummaryrefslogtreecommitdiff
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/endpoints.f9030
1 files changed, 18 insertions, 12 deletions
diff --git a/player/endpoints.f90 b/player/endpoints.f90
index 60e96af..cbb1126 100644
--- a/player/endpoints.f90
+++ b/player/endpoints.f90
@@ -103,28 +103,34 @@ contains
character(len=*), intent(in), optional::task_type
character(*), intent(out)::url
- character(32)::int_text
+ logical::internal_posting
+
+ internal_posting = .false.
if(present(posting)) then
- call base_url(captain, LOCATION_STATUS, posting, url)
- else
- call base_url(captain, LOCATION_STATUS, .false., url)
+ internal_posting = posting
end if
+
+ call base_url(captain, LOCATION_STATUS, internal_posting, url)
+
call replace_field(url, "name", identity)
call replace_field(url, "jobid", job)
call replace_field(url, "step", step)
- if(present(status)) then
- url = trim(url)//"?status="//trim(status_text(status))
- if(present(task_type)) then
- url = trim(url)//"&type="//trim(task_type)
+ ! Query strings aren't to be used when posting (i.e. a titan request)
+ if(.not. internal_posting) then
+ if(present(status)) then
+ url = trim(url)//"?status="//trim(status_text(status))
+ if(present(task_type)) then
+ url = trim(url)//"&type="//trim(task_type)
+ end if
+ else if(present(task_type)) then
+ url = trim(url)//"?type="//trim(task_type)
end if
- else if(present(task_type)) then
- url = trim(url)//"?type="//trim(task_type)
+
+ call append_query_token(url)
end if
- call append_query_token(url)
-
end subroutine get_status_url
subroutine get_job_report_url(job, success, res)