elnormous/HTTPRequest

Need to specify port in request header!

Closed this issue · 1 comments

When I used the method "POST" and an address with port number 8080. I always got an 502 bad gateway error. After using wireshark and compare the c++ post request with the curl post request, I found that in the header you need to concatenate the port number after the domain! In the original implementation, the header string just contains a domain there.

I am not a native speaker, and any discussion is welcomed. I'll start a pull request later time.

This is fixed in cdaa3cd