New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libcurl] Request to nginx return 407 #1349
Comments
Sounds like an nginx issue to me that you probably are better off asking in an nginx forum or in their documentation. 407 would indicate that nginx runs as a proxy since that is the response code asking for proxy authorization. |
Just to be clear are you saying that you can retrieve the same resources from your nginx server successfully using curl but not libcurl? In your libcurl output it shows a 200 reply when you request /api/systems/usb but not the others. For example, are you saying that /api/modules which the server gives a 407 reply in libcurl is a 200 reply in curl? If that's the case compare the versions, |
I really can't see a curl issue here. If the server responds differently, it is either a server issue or you're making the requests differ somehow, via a curlrc or similar. If you find something that contradicts this, feel free to comment again and explain and we can reopen this issue if so. |
Hello community !
TL;DR
Call our Nginx server with
libcurl
make 407 everytime, but never with command curl under Raspbian 8I did this
We have a soft under Qt that does some request to our Nginx server on localhost :
We get a 407 http error everytime :
Before we run under Apache, we get all the time 200 response, but Apache eat some much power ....
Our NGinx configuration :
I expected the following
We expected a 200OK ...
Interesting fact, did :
curl -k https://localhost/ourRequest
orcurl http://localhost/ourRequest
return all the time a 200OK.Did we have miss some configuration ?
curl/libcurl version
On Raspbian base :
curl 7.38.0 (arm-unknown-linux-gnueabihf) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz TLS-SRP
operating system
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
more /etc/debian_version : 8.0
QMake version 3.0
Using Qt version 5.3.2 in /usr/lib/arm-linux-gnueabihf
Thanks you 😃
The text was updated successfully, but these errors were encountered: