Hi All,
I am using a webdav server
I need to send files stored in my windows system to the server, any idea how to do it.
I dont know how to create a url in linux for webdav server using details.
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file... (1 Reply)
hi dear i m very new to socket programing .
i need the source code which sends file from server to client .
i mean both server n client programe which sends file .
can u do this for me please
my email id is email id removed
regards bilal (1 Reply)
Hi Frnds,
I have a task in my project wherein i have to send out a mail from my C++ code.With some file attachements.Please help me in this.
At a higher level wat i can tell is my code generated 3 csv file and i have to send these files as attachement.
My code is executed in unix... (6 Replies)
Hey,
I have a WebDav directory mounted and everything seems fine except for one thing. All file/directory names appear in all UPPERCASE, when in actual fact they are lowercase on the remote machine.
For example:
foo/bar/baz.html on the remote host, appears on my local machine as... (0 Replies)
Hi all
i have a such question this is my shell script my script must upload file to webdav server
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
#!/bin/sh
###... (1 Reply)
Dear Experts,
please help i am very much confused here and not getting the right path,
actually i want to send a file from client to a server,
initially i used mmap() which is failing most of the time so i want to use general IO streams to do that,
i can open a file in "rb" mode
and read... (1 Reply)
Hi,
I am trying to write some test code for bigger project where my perl script will send file over to server. This is the current SERVER and CLIENT code I have so far. When I type "hi" from client I get hello back from server and like wise I send send command I get respond back the problem... (1 Reply)
Hi All,
I have to send a processed file to 24 different server locations. I feel, if this job can be done parallel in the background - Time will come down.
I found the script to FTP the file for a single server location through past Unix posts as below:
#!/usr/bin/ksh
ftp -v -n... (16 Replies)
I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box.
The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused.
The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies
LEARN ABOUT REDHAT
ne_set_server_auth
NE_SET_SERVER_AUTH(3) neon API reference NE_SET_SERVER_AUTH(3)NAME
ne_set_server_auth, ne_set_proxy_auth, ne_forget_auth - register authentication callbacks
SYNOPSIS
#include <ne_auth.h>
typedef int (*ne_request_auth) (void *userdata, const char *realm, int attempt, char *username, char *password);
void ne_set_server_auth (ne_session *session, ne_request_auth callback, void *userdata);
void ne_set_proxy_auth (ne_session *session, ne_request_auth callback, void *userdata);
void ne_forget_auth (ne_session *session);
DESCRIPTION
The ne_request_auth function type defines a callback which is invoked when a server or proxy server requires user authentication for a par-
ticular request. The realm string is supplied by the server. The attempt is a counter giving the number of times the request has been re-
tried with different authentication credentials. The first time the callback is invoked for a particular request, attempt will be zero.
To retry the request using new authentication credentials, the callback should return zero, and the username and password buffers must con-
tain NUL-terminated strings. The NE_ABUFSIZ constant gives the size of these buffers.
Tip
If you only wish to allow the user one attempt to enter credentials, use the value of the attempt parameter as the return value of
the callback.
To abort the request, the callback should return a non-zero value; in which case the contents of the username and password buffers are ig-
nored.
The ne_forget_auth function can be used to discard the cached authentication credentials.
EXAMPLES
/* Function which prompts for a line of user input: */
extern char *prompt_for(const char *prompt);
static int
my_auth(void *userdata, const char *realm, int attempts,
char *username, char *password)
{
strncpy(username, prompt_for("Username: "), NE_ABUFSIZ);
strncpy(password, prompt_for("Password: "), NE_ABUFSIZ);
return attempts;
}
int main(...)
{
ne_session *sess = ne_session_create(...);
ne_set_server_auth(sess, my_auth, NULL);
/* ... */
}
AUTHOR
Joe Orton <neon@webdav.org>.
neon 0.23.5 8 October 2002 NE_SET_SERVER_AUTH(3)