What is The cURL (28) Error, Couldn't connect to server?

by mostafa Mar 14, 2024

The cURL (28) indicates a proxy connection error. The full error traceback looks like the following:

curl: (28) Failed to connect to XXXX port XXXX after 21057 ms: Couldn't connect to server

This error arises when the cURL request can't connect to the proxy server, either because the server isn't responding or the proxy details are invalid. To solve the cURL (28) error, double-check your proxy IP and port or use another proxy, as it can be down or unresponsive.

For further details on proxies, including their types and best practices when choosing a proxy, refer to our introduction guide.

The Complete Guide To Using Proxies For Web Scraping

Introduction to proxy usage in web scraping. What types of proxies are there? How to evaluate proxy providers and avoid common issues.

The Complete Guide To Using Proxies For Web Scraping

Related Articles

Bypass Proxy Detection with Browser Fingerprint Impersonation

Stop proxy blocks with browser fingerprint impersonation using this guide for Playwright, Selenium, curl-impersonate & Scrapfly

PROXIES
SELENIUM
PLAYWRIGHT
PUPPETEER
BLOCKING
Bypass Proxy Detection with Browser Fingerprint Impersonation

How Caching Can Cut Your Proxy Bill by 70%

Learn how intelligent caching strategies can reduce proxy costs by 40-70%. Complete guide to bandwidth optimization and proxy management.

PROXIES
How Caching Can Cut Your Proxy Bill by 70%

How to Optimize NetNut Proxies

Learn how to set up and optimize NetNut proxies for web scraping, including bandwidth reduction techniques and integration with Scrapfly Proxy Saver.

PROXIES
How to Optimize NetNut Proxies

How to Optimize Webshare Proxies

Webshare is a fast-growing proxy provider offering affordable proxy solutions for various web scraping and automation tasks. Here's how to make best of it.

PROXIES
How to Optimize Webshare Proxies

How to Optimize Oxylabs Proxies

Learn how to optimize Oxylabs proxies for efficient web scraping using Python and Scrapfly Proxy Saver. Reduce bandwidth, improve speed, and cut costs.

PROXIES
How to Optimize Oxylabs Proxies

How to Reduce Your Bright Data Bandwidth Usage

Learn how to reduce Bright Data proxy bandwidth usage using Python optimizations and Scrapfly Proxy Saver to cut data costs by up to 30%

PROXIES
How to Reduce Your Bright Data Bandwidth Usage