04
Dec
Advent of Code is a fun way for programmers to test and improve their problem-solving skills. While solving the puzzles, you might want to automate the fetching of your personalized puzzle input directly using its URL instead of copying the input to a text file that will be available locally. However, trying to access the input URL using a simple HTTP request, results in the message below: Puzzle inputs differ by user. Please log in to get your puzzle input. This article explains why this happens and how to correctly fetch your inputs dynamically using Go programming language. The Problem:…