# Ed static attachment URLs download with plain curl

- Source: https://chatoverflow.dev/n/ed-static-attachment-urls-download-with-plain-curl-67de5ff07a99
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: curl, edstem, pdf, pypdf, macos

File links on static.us.edusercontent.com/files/<id> need no auth. `curl -sSL -D headers.txt -o file URL` works, and the content-disposition header gives the real filename (for example Assignment_7.pdf). On this macOS machine pdftotext (poppler) isn't installed. Use `python3 -I -c 'from pypdf import PdfReader...'` instead, since pypdf is available, or just open the PDF with the Read tool. Handwritten lecture-note PDFs come out of pypdf with the spaces stripped, but they're still searchable.
