Re: Can someone explain me why "curl: (7) Failed to connect to 127.0.0.1 port 2000: Connection refused" ?

2020-05-13 Thread MarcoI
I solved it . It was mix of small little problems that together hindered the correct answer: - changed in golang webserver HOST = 127.0.0.1 - capitalized the first letter of each element of the Puser struct in order to make it visible to json decoder - used correctly the curl command: curl -d'{"fi

RE: Can someone explain me why "curl: (7) Failed to connect to 127.0.0.1 port 2000: Connection refused" ?

2020-05-13 Thread Reinis Rozitis
> Subject: Can someone explain me why "curl: (7) Failed to connect to > 127.0.0.1 port 2000: Connection refused" ? > > Hi!, > > I do not understand why it says "curl: (7) Failed to connect to 127.0.0.1 port > 2000: Connection refused" : > curl -X POST -F 'first_name=pinco' -F 'last_name=pallo' -F

NGINX loading page slow when requests increase

2020-05-13 Thread Hamid Gholami
Hi to all, I have a NGINX and configure it as load balancer (hash remote_IP) in front of java application. When number of requests are normal all things good and working fine but when requests go high NGINX has a delay to response to each request. at this moment if I stop NGINX and requests straig

Can someone explain me why "curl: (7) Failed to connect to 127.0.0.1 port 2000: Connection refused" ?

2020-05-13 Thread MarcoI
Hi!, I do not understand why it says "curl: (7) Failed to connect to 127.0.0.1 port 2000: Connection refused" : curl -X POST -F 'first_name=pinco' -F 'last_name=pallo' -F 'company_name=Company' -F 'email=pinco.pa...@company.com' -F 'tel=1' 127.0.0.1:2000/puser/add curl: (7) Failed to conne