CurlDotNet Tutorials
CurlDotNet tutorials for beginners: learn curl in C# step by step, with no prior programming experience assumed. The 14 tutorials below explain .NET, curl and async/await in plain English, then build up from your first Curl.ExecuteAsync request to JSON, headers, authentication, files, cancellation, parallel requests and debugging.
Tutorial Series
Foundation (Start Here)
- What is .NET and C#? - Understanding the basics
- What is curl? - The tool CurlDotNet brings to .NET
- Understanding Async/Await - Why we use
asyncandawait
Getting Started
- Your First Request - Make your first HTTP request
- Understanding Results - Working with
CurlResult - Handling Errors - When things go wrong
Working with Data
- JSON for Beginners - Reading and sending JSON
- Headers Explained - What headers are and why they matter
- Authentication Basics - Passwords, tokens and API keys
Files and Forms
- Files and Downloads - Downloading and uploading
- Forms and Data - Submitting forms and request bodies
Advanced Concepts
- Cancellation Tokens - Stopping requests
- Parallel Requests - Multiple requests at once
- Debugging Requests - Finding and fixing problems
Learning Goals
By the end of these tutorials you will understand:
- What .NET and C# are
- How to make HTTP requests
- How to handle responses
- How to work with JSON
- How to handle errors properly
- How to authenticate with APIs
- How to upload and download files
- How to debug when things do not work
How to Use These Tutorials
For Complete Beginners
- Start at Tutorial 1 and go in order
- Each tutorial builds on the previous one
- Try every code example yourself
- Do not worry if everything does not click immediately
For Those with Some Experience
- Skip Tutorials 1-3 if you already know .NET
- Jump to Tutorial 4 for CurlDotNet specifics
- Use the tutorials as a reference afterwards
Tutorial Format
Each tutorial follows the same structure:
- What You’ll Learn - clear goals
- Prerequisites - what you need to know first
- The Concept - explained in plain English
- Code Examples - lots of them
- Try It Yourself - exercises
- Common Mistakes - what to avoid
- Next Steps - where to go next
What You Need
Required
- .NET SDK (free from Microsoft; see the installation guide)
- A text editor (Visual Studio Code is free)
- The CurlDotNet NuGet package
Not Required
- Prior programming experience
- Advanced mathematics
- Paid tools
Ready to Start?
Begin with Tutorial 1: What is .NET and C#?, or jump to a specific topic from the list above.
Stuck?
- Each tutorial has a “Common Problems” or “Common Mistakes” section
- Check the troubleshooting guide
- Ask in GitHub Discussions
Everyone starts as a beginner. Take your time and try the examples.
If you already know .NET you may prefer the API guide or the cookbook.