Understand the `goDLS` function for PACER document downloads
mainThe goDLS function is used in PACER to generate a form, append it to the document, and submit it to trigger a document download (typically a PDF). When automating PACER, you may need to replicate this POST request behavior.
District Court goDLS Parameters
When calling goDLS in District courts, the following parameters are used in the POST body:
hyperlink: The HTML 'action' attribute (the URL where the form is posted).caseid: The internal PACER ID for the case (de_caseid).de_seq_num: The internal PACER document number within the case (de_seqno). Note that this may differ from the visible document number.got_receipt: If set to'1', it bypasses the receipt page and downloads the PDF immediately. This is typically set after a user has viewed the receipt.pdf_header: Controls the blue header on generated PDFs.1includes the header,2excludes it.pdf_toggle_possible: (Unknown purpose).magic_num: (Used when an NEF hyperlink is clicked on multi-document filings).hdr: (Used when an NEF hyperlink is clicked on ROA/Appendix).
Bankruptcy CMECF goDLS Parameters
In Bankruptcy CMECF, the signature changes to include bankruptcy-specific parameters for claim documents, replacing the hdr parameter:
claim_id: Bankruptcy-specific claim ID.claim_num: Bankruptcy-specific claim number.claim_doc_seq: Bankruptcy-specific claim document sequence.
// District Court signature
function goDLS(hyperlink, de_caseid, de_seqno, got_receipt, pdf_header, pdf_toggle_possible, magic_num, hdr) {
// ... implementation ...
}
// Bankruptcy CMECF signature
function goDLS(hyperlink, de_caseid, de_seqno, got_receipt, pdf_header, pdf_toggle_possible, magic_num, claim_id, claim_num, claim_doc_seq) {
// ... implementation ...
}