Using HTTP Client with non-default port

Lou Montulli lou at
Mon Dec 6 16:56:02 EST 2010

Verify that the server on 8080 is functioning properly via some other method
like a wget, lynx or firefox.


If the server is working and NEON isn't, perhaps you could paste a snippet
of code for how you are passing the port number to the library.


Neon certainly works correctly for non standard ports, it is passed during
the session create call.


ne_session_create(mUseHTTPS ? "https" : "http", Hostname, Port);


If you are getting Permission denied, you may have password authorization
required on the server, that is something you should see when you connect
with an alternate browser.

Neon supports authorization through the ne_set_server_auth() call.





From: neon-bounces at
[mailto:neon-bounces at] On Behalf Of Karl Falconer
Sent: Monday, December 06, 2010 1:36 PM
To: neon at
Subject: Using HTTP Client with non-default port




I am trying to debug a bit of code that uses the neon library to make an
HTTP connection.


The problem I am seeing is that when a session is created with a non-default
http port, such as 8080, a subsequent call to ne_begin_request returns an
NC_CONNECT error code with the following message: "Could not connect to
server: Permission denied"


After changing the listening port to 80, the library is able to connect to
the server.


Are there any additional calls that need to be made in order to use the
client with a non-default http schema port?



-------------- next part --------------
An HTML attachment was scrubbed...

More information about the neon mailing list