I am trying to fill out a web form from within a script I am writing. I think that I should be using curl to do this, but I'm not really sure. The form has username and password fields and a submit button. I want to be able to log in from the command line.
Html from the site:
Any help would be greatly appreciated.
Hi all.
I am not a DBA. But I do have responsibility for making sure the archive logs dont fill up and cause the database. This happend the other day while I was absent (sick) and I got a good ticking off for it.
Needless to say I dont want this happen!
Could anyone lend a hand to a... (8 Replies)
Not sure how I should approach this one.
I have server X and Server Y. X is a collector. All files are seperated by hour. Y is used strictly for analysis. I do not always need all files from X. Sometimes other people use Y for analysis and do not always know how to transfer the files from... (3 Replies)
Please pardon my ignorance, but I need to create a web-based form which can be used to request access to the unix servers in our environment. It just needs to have input fields for basic info (name, dept., etc.), and perhaps a drop-down box with the names of the servers. The form will be submitted... (2 Replies)
I have this command that i am calling from php (exec()):
openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12
and then i need to insert password twice
Enter Export Password:
Verifying - Enter Export Password:
I need script that will fill the password... (3 Replies)
Hi
My goal is to fill an HTML form and submit.
What I have managed to do:
1. curl command to fill up the form and submit
2. a file which has the input
curl command:
curl -v -b cookie.txt -d __CSRFToken__=dc23d5da47953b3b390ec68d972af10380908b14 -d do=create -d a=open -d... (10 Replies)
Hello,
I'm new in the forum and really beginer, and also sorry form my bad english.
I use linux and want to create little program to download automaticaly some pdf (invoices) and put in a folder of my computer. I learn how to do and programme with ubuntu but the program will be implemented... (1 Reply)
Hi I was hoping some one could help me with a problem I have.
I am trying to collect some information from a web form and save it to a text file.
I found an example on this site that is sort of what I am trying to accomplish, the shell script bellow should echo the input back to the browser... (0 Replies)
I am trying to create a script that checks if my VPN connection is up and running...
Everything seems to work as except but for some reason, the script fills up my /var/log/auth.log with the below information
Dec 13 01:07:44 debian sudo: soichiro : TTY=pts/0 ; PWD=/home/soichiro/Desktop ;... (5 Replies)
Discussion started by: soichiro
5 Replies
LEARN ABOUT DEBIAN
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_auth_creds)(void *userdata, const char *realm, int attempt, char *username, char *password);
void ne_set_server_auth(ne_session *session, ne_auth_creds callback, void *userdata);
void ne_set_proxy_auth(ne_session *session, ne_auth_creds callback, void *userdata);
void ne_forget_auth(ne_session *session);
DESCRIPTION
The ne_auth_creds function type defines a callback which is invoked when a server or proxy server requires user authentication for a
particular request. The realm string is supplied by the server. The attempt is a counter giving the number of times the request has been
retried 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
contain 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
ignored.
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@lists.manyfish.co.uk>
Author.
COPYRIGHT neon 0.29.6 3 May 2011 NE_SET_SERVER_AUTH(3)