# [Solved] error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in in php. So Here I am Explain to you all the possible solutions here.

## How error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in Error Occurs?

Today I get the following error error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in in php.

## How To Solve error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in Error ?

1. How To Solve error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in Error?

To Solve error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in Error

Could not resolve host: test.example.localhost

2. error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in

To Solve error 6: Could not resolve host: test.example.localhost (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in Error

Could not resolve host: test.example.localhost

## Solution 1

Could not resolve host: test.example.localhost

open C:\Windows\System32\Drivers\etc\hosts and add this entry:

127.0.0.1 test.example.localhost

so that the host-name will be known.

## Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.