I receive hundreds of documents from the courts that my system processes. I used to get public urls to view documents but recently the court software put an email validation link in the url that must be entered before the document will download. I need to find a way to bypass this so I can download the documents with a GET call.
Example:
https://minnesota.tylertech.cloud/DownloadResource.ashx?RID=4df7d320-8d9a-4cee-a9ee-4b94ef8128b8
I was hoping to just be able to add a URL parameter with my email but I cannot get that to work.
This is the response now on my call (instead of just downloading the doc):
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Validate Authorization to this Document:
</title><link href="css/tylerui.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
<form method="post" action="./DownloadResourceValidate.aspx?RID=4df7d320-8d9a-4cee-a9ee-4b94ef8128b8" id="formValidate">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTEzOTU4MjgxOWRkP23EwOMM3RpTrXIodb3e8jyilvHeboA8NB9OwIIaz1I=" />
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="A580CC42" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAMazmUF/tC1u6vGSgb5f+cMItpF8jP9UFQUAQAedodKY3ciJN2LpkiT3kPbz9Ne/Fe2Ot8f9lm6hsw03/5DToyrZBt9XGqE2NEXEjgwH5ZJjA==" />
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="form-group pristine">
<div class="editor-label">
<p style="margin-top:2cm;" />
<label for="emailAddress" id="lblEmailAddress">Enter your email address</label>
<p>To download the document please enter your email address below and click validate.</p>
</div>
<div class="editor-field">
<input name="emailAddress" type="text" id="emailAddress" class="form-control" onchange="clearMessage('emailAddressMessage')" />
<span id="emailAddressMessage" class="alert-danger"></span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-md-offset-4">
<input type="submit" name="SubmitEmailAddressButton" value="Validate" id="SubmitEmailAddressButton" class="tyler-btn tyler-btn-primary" />
<br/><br/>
</div>
</div>
</form>
<script type="text/javascript">
function clearMessage(messageElementID) {
var element = document.getElementById(messageElementID);
element.style.display = 'none';
}
</script>
</body>
</html>
Adding my email as a url parameter.