Fix Image Download Functionality in LibreOffice Calc VBA Macro I have a working LibreOffice Calc macro that successfully generates product descriptions, keywords, and DALL-E images via OpenAI API. However, the image download functionality is failing due to network/DNS resolution issues on my Windows system. What's Working - OpenAI Vision API calls (product descriptions) - OpenAI GPT API calls (keyword generation) - DALL-E 3 image generation (returns valid image URLs) - All API integrations are functional - Spreadsheet data processing and writing The Problem DALL-E generates valid image URLs, but downloading them to local disk fails with DNS/network errors. All attempted download methods fail with the same root cause: curl: Exit code 6 (couldn't resolve host) PowerShell: Blocked by execution policy, and when bypassed, DNS resolution fails VBScript with MSXML2: "Server name or address could not be resolved" Windows URLDownloadToFile API: Error code 0x800C0005 (DNS resolution failure) WinHTTP/MSXML2 COM objects: Connection failures System Environment - OS: Windows (cmd shell) - Application: LibreOffice Calc (not Excel) - Language: VBA/LibreOffice Basic - curl version: 7.55.1 (installed but DNS fails) Requirements - Fix the DescargarImagenLocal() function to successfully download images from DALL-E URLs to D:\macro_images\ folder. Must Have: - Download images from HTTPS URLs (DALL-E Azure blob storage) - Save as PNG files with specific naming convention - Work within LibreOffice Basic/VBA environment - Handle special characters in URLs (Azure SAS tokens with &, %, =) - Return local file path on success - Work despite apparent DNS/network restrictions on the system Current Code Structure - File: MacroOpenAI_Final.bas - Function to fix: DescargarImagenLocal(sURL, sCarpetaDestino, sNombreArchivo) - Returns: Local file path string or error message - Called by: GenerarImagenesProducto() which generates 6 images per product Deliverables - Working DescargarImagenLocal() function that successfully downloads images Brief explanation of why the solution works when others failed - Any system configuration changes needed (if applicable) Files Available - Complete macro code with all context - Error logs showing DNS resolution failures Budget: 10$ Urgency: High - macro is 95% complete, only download functionality missing Ideal Freelancer Experience with VBA/LibreOffice Basic Knowledge of Windows networking APIs Experience with HTTP downloads in restricted environments Problem-solving skills for network/DNS issues Familiarity with COM objects and Windows APIs Additional Notes The macro processes multiple rows, so the solution must be reliable and repeatable DALL-E URLs expire in 2 hours, so downloads must happen immediately Manual browser downloads work, suggesting the issue is specific to programmatic access All previous attempts have been documented with detailed error logs To Apply: Please describe your approach to solving the DNS/network restriction issue and any similar problems you've solved before.