Programming :: POST Method And PHP - Login Verification

Mar 20, 2010

I wrote a code for login verification..I got output with GET. But I need output with POST since it is more secure. Any error in my code.

javascript code:
var xml;
function verifyusernamepasswd(pass)
{ //pass is password that will be passed as parameter
xml=new XMLHttpRequest();
var url="http://localhost/loginvalidate.php";
var para="q="+username+"&p="+pass;//username is global
xml.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xml.setRequestHeader("Content-length", para.length);
xml.setRequestHeader("Connection", "close");
xml.open("POST",url,true);
xml.onreadystatechange=statechanged1;
xml.send(para);
} .....

The verification does not return anything, cos my alert is not displayed at all.

View 1 Replies


ADVERTISEMENT

General :: Wget Webpage Using Post Method With Multiple Forms

Feb 19, 2011

I would like to download a webpage using WGET which needs a form submission (POST method) in order to appear. I can do that with this command.

wget --post-data="computer=hosts&style=list" http://www.example.com

The problem is there is more than one form on the requested page and I dont know how to tell WGET which one should it POST the data to.

View 3 Replies View Related

OpenSUSE Install :: Anyway To Set Remote Login As Default Login Method

Jun 2, 2010

i'm using OpenSuSE 11.2 and was wondering if there is anyway to set remote login as the default login method.

View 9 Replies View Related

Programming :: Use SSH In PHP Invokes 'Host Key Verification Failed' Error

Sep 27, 2010

Im trying to do a remote execution of scripts through SSH in PHP. What im doing:

-Use PHP in conjunction with nagios' check_by_ssh script to execute the script.
-I used

[code]...

-It gives me a 'Host key verification failed' error even though i enabled it to ssh from my server to server01 without password. My Qn: How do i get it to work?

View 3 Replies View Related

Debian Programming :: OpenGL Version Verification - Compiler Error

Feb 5, 2015

I have moved from MS directX to OpenGL on Linux Debian. My computer is running Jessie version with Gimp. I am trying to use several of the gl 4.0 functions but getting compiler error. I check for OpenGL version and appears to be version 1.5 .... How can I verify the correct openGL version and how can I upgrade to a moder version of at least 4.0?

View 4 Replies View Related

Fedora Installation :: F12 -> F14 Post Upgrade - Unable To Get To A GDM Login

Nov 27, 2010

My system is Dell 4300S with 1.4 GHz Pentium processor, recently upgraded to 1 GB RAM,120 GB WDC1200JB hard drive Sony DRU-720A DVD/RW drive, ATT plugandshare wireless adapter with Atheros AR5001X chip, ATI Rage 128 Pro Ultra TF video card, and Actiontec V90, and 56KFlex modem (Agere System Venus). I attempted to use preupgrade to upgrade from Fedora 12 to 14 using wireless connection. It seems, that upgrade finished successfully, except I am not unable to get to a GDM login. I updated SElinux to selinux-policy-3.9.7-10 and selinux-policy-targeted-3.9.7-10, and touch /.autorelabel overnight, I was able to login using GDM once. And that is all. After I boot, after Ctrl+Alt+F4, I can login to terminal.

[Code].....

View 8 Replies View Related

Ubuntu :: Forum Login Times Out While Composing A Post?

Oct 9, 2010

I've used the forums infrequently, being more of a mailing list kind of guy. But I'm currently tinkering with an old laptop I got as a "gift" which doesn't have an ethernet port, And if I wanted to use my cable modems usb connection to apt-get etc for the installed Ubuntu Lucid, I had to disconnect my router. This pc isn't yet configured with my mail client etc... So I thought I'd try the forum again...I noticed that using: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Which has not been modified yet (except to add the scroogle search bar) I keep timing out.

IEI logged in to ubuntu forums, found an existing thread related to something I'd like to do with it.clicked on quote, and began composing a followup. When I was ready to preview the thread I got an error that said I wasn't logged in. and suggested I use some included form to try again. The form looked like it wanted my username and password but wouldn't let me enter the required info into the blank fields... I had to simply log in again with the login link at the top of the forum page, and use the back button (alt+leftarrow) several times until my reply was recovered so that I could preview, fix typos & submit..I searched the forum for "forum login timeout" and found one relevant post which appeared to say the only reason it's OP had a problem was do to making changes to his copy of firefox but that it was fixed ([solved]) without saying how he fixed it. There was a reference to using about:config which is beyond my skill level...How does one keep the from login session from timing out while one's browser still has an open window to what was a logged in forum page anyway

View 9 Replies View Related

Ubuntu :: Black Screen Post GRUB2, Login And Pword Ok Then Nothing?

May 15, 2011

When restarting my dual boot system I wanted to start Win XP. Scrolling down the list I think I hit the left arrow key by mistake. I got what I think is the recovery menu. I chose #1, Continue Normal Boot (at least that's what I think it was). Then I was prompted for my login and password. The system accepted those and seemed happy but will go no further.

I've tried entering 'exit'. This simply causes the system to ask for login and pword again. see the attachment of my screen. I've searched the forum and haven't found a similar situation with a solution.I am reluctant to pull the power to shut down. Until this my system has been very stable and reliable.

View 3 Replies View Related

General :: Openfiler Post Install - Login As Root And Configure Everything Within The GUI

Feb 1, 2011

I downloaded the lastest x86 stable release of openfiler and installed it on VBOX durring the install I selected to manually do the partitions and added a

/boot
swap (x2 ram)
/

Partition scheme. I selected DHCP client on the network configuration. Now from what I understand once I have done that I should be able to point my browser to https:<IP>:446 and login as root and configure everything within the GUI. But when I log in there is nothing to configure. My host system is Ubuntu x86_64 4GB Ram amd dual core processor.

View 1 Replies View Related

Programming :: PHP - POST Not Working?

Dec 29, 2010

The following script keeps telling me: Notice: Undefined index: name in /usr/files/www/rage.php on line 6 Name:

PHP Code:
<html>
<?php

[code]...

View 7 Replies View Related

Ubuntu Security :: Found Potential Login - Switch Users Method Allows To Bypass The Password Protection

Jan 7, 2011

I don't know if this is Just my Machine, or not. But here is it:

Ubuntu 10.01
Acer Aspire 7740

When the computer is locked. I can smiply go to switch users. when the list of users logins are shown all i have to do is click on my user name and it allows me into my account without typing in a password. I can lock the computer manually or wait for it to time out it doesn't matter. the switch users method allows me to bypass the password protection.

View 3 Replies View Related

Programming :: Xdg-open: No Method Available For Opening?

Jun 30, 2011

I am not a programmer. But I feel safe enough to edit a file (afteracking it up of course.)I am using Arch with Enlightenment (E17.) I installed fwbuilder. Now when I click on the tutorial button it would not start my browser at all. The terminal gave this error;

Code:
/usr/bin/xdg-open: line 478: firefox: command not found
/usr/bin/xdg-open: line 478: mozilla: command not found

[code]....

View 2 Replies View Related

Programming :: Using Wget With Post Data

Nov 29, 2010

I've been pulling my hair out trying to get wget to post data to a webpage to automatically download some files. I've tried many methods of syntax, but wget always downloads the html for the login page. A snippet of code I found in the login html page is below. Some of the characters are japanese, because it's a japanese website.

View 7 Replies View Related

Programming :: Encrypt A Text Using Rsa Encryption Method?

Jul 8, 2010

I want to encrypt a text using rsa encryption method. I did it using command openssl but i want it using my library api, the library api is as, int rsa_calc (unsigned char * msg, unsigned char * mod, int count, int exp, unsigned char result); I can't understand how i input public key (.pem file) and what will be the modulus (unsigned char * mod) and exponent (int exp) for any text.Is there any kind of formula to calculate modulus and exponent of the text.

View 2 Replies View Related

General :: ARM Multicore Programming And Its Compilation Method ?

Apr 8, 2010

I wish to know that which gcc release version had support on ARM 9 multicore system by using pthread library for its parallelizing method on ecos rtos.I assume that the compiler that support the single ARM 9 processor will surely compile its multicore version also.But i need a clarification about it.It is good if you give a article or provide a suitable link on the ARM multicore programming and its compilation method

View 1 Replies View Related

Programming :: Bash Read Method 'defaults'?

Mar 28, 2011

I have a script that will ask the operator to specify whether the script should fetch the bits via FTP or SCP:

Code:
# Specify transfer method
echo "[setup]: Please specify file transfer method [ftp] or [scp]:"

[code]....

View 2 Replies View Related

Programming :: Sequencing With Raising A Signal Method?

Mar 4, 2010

I was trying to program using fork(). The objective of this code is to

1. I am activating a process A - SubSuctionMotors.
2. Process A is going to stop with either of this condition
a) Switch is activated - swret=1
b) Time allowed has expired
3. Stop the process A.

[Code]...

1. We purposely force the switch to be inactive to test the child process (timer), whether after 2 seconds the motor stop. It turns out to be successful in first few attempts. After some while, the program hang, nothing is executed anymore and the program is not exit or terminated. What can cause the program to hang?

2. We tried to stop motor by switch activation (if the switch is to be successfully activated, the time it takes will always be shorter than the timer allowed time). However, the program did not seems like noticing the switch has been activated, and it just stop the motor according to timer. Why it behave this way?

View 4 Replies View Related

Programming :: Perform A Permutation, Which Did Using One Post From This Forum?

Feb 1, 2011

I am really a Newbie in bash programing and I need to perform a permutation, which I did using one post from this forum as follow.

#!/bin/bash
list=`echo {1..12}`
for c1 in $list

[code]....

View 5 Replies View Related

Programming :: Trace The Method Calls In Java During Runtime?

May 12, 2009

how can I trace the method calls in Java during runtime?

View 1 Replies View Related

Slackware :: Automatic Logins To Virtual Console Using "a C Login Program" Method

Mar 23, 2010

I've been using this howto to set up automatic logins to virtual console using "a C login program" method. In slackware64-current updated till january it prompted me to enter a password before logging in, while now after installing latest updates and kde 4.3.5 from current it logs in automatically without any prompting.

View 3 Replies View Related

Programming :: Preferred Method For Obtaining Harvard Style Referencing In LaTeX Document?

Mar 30, 2011

What is the preferred method for obtaining Harvard style referencing in a LaTeX document?

View 1 Replies View Related

Ubuntu Servers :: 10.04 - Post Login Message Says "133 Packages Can Be Updated" - Not?

May 5, 2010

With: Code: sudo apt-get clean ; sudo apt-get update ; sudo apt-get upgrade I get:

[Code]...

View 6 Replies View Related

Programming :: Ajax To Open An Ftp Connection - Download A File And Then Turn Around And POST It To A Web Server?

Jun 23, 2011

just curious, this might not be possible, but is there any way with ajax to open an ftp connection, download a file and then turn around and POST it to a web server? the reason i ask is because i'm writing a script on a shared hosting plan that doesn't give me permission to directly talk outbound on the ftp port but i need to synchronize a file from a csv on an ftp server, this means i have to do the process manually, is there any way i can just click the button and let my browser do the work?

View 4 Replies View Related

Server :: Apache2 SVN Post-commit Script Certificate Error Post-commit Hook Failed (exit Code 1) With Output?

Oct 12, 2009

I am using apache2 with subversion and trying to get post commit script to run an svn update command. All svn commands seem to work fine manually

Everything used to work fine but then the server ip changed and I can no longer access it with the web name and have to use the ip directly

I am using tortoise svn with vista on my work machine

Here is the script

#!/bin/sh
export LC_CTYPE=en_US.UTF-8
/usr/bin/svn update /home/common/webroot/bob

Here is the result.

Command: Commit
Modified: C:UsersMattDesktopcheckout - bobindex.php
Sending content: C:UsersMattDesktopcheckout - bobindex.php
Completed: At revision: 63
Error: post-commit hook failed (exit code 1) with output:
code....

I think what i need to do is update the certifcate for the apache2, but I'm not sure how to do this, where to put it, and then which of the thousand apache config lines needs to be changed

View 5 Replies View Related

Programming :: Can't Call Method "prepare" Without A Package Or Object Reference?

Oct 4, 2010

I have the following code in the TCP server:Quote:

while (my $from_who = accept(CLIENT_SOCK, TCP_SOCK)) {
my $data = '';
#my $previous = select CLIENT_SOCK;

[code]...

View 5 Replies View Related

Programming :: Gdb: "classname Does Not Have Any Method Named"?

Jun 20, 2010

Programming in C++ on Fedora 13, I have a console app with code spread throughout a half dozen files.Debugging with gdb, I want to list the code from a class-member function so, at the gdb prompt I type: list 'classn and when I press <tab>, gdb completes the classname for me: list 'classname Next, I add the scope resolution operator and then type the first few characters of the function name and again press <tab>. gdb completes the function name and adds on the parameters list and even puts the final single-quote at the end of the line:list 'classname::functionname(paramater list...)'

...but when I press enter I get an error message stating that "classname does not have any method named functionname" which seems like a strange complaint considering that gdb did most of the typing.

Similarly, trying to set a breakpoint at the top of this function yields this:"Make breakpoint pending on future shared library load?" As an aside: I am compiling all units with the -gstabs flag ( plain ol' -g didn't seem to get the job done.)

View 1 Replies View Related

Ubuntu :: Cannot Post On Forum - Click On "submit" To Post A Thread The Page Will Just Say "loading..."

Sep 28, 2010

For some odd reason, I cannot post on the ubuntu forum and the LinuxMint forum. Yea, I know.... the irony... I am using Mozilla and have tried Chromium, but that did not fix my problem. When I click on "submit" to post a thread, the page will just say "loading..." and nothing happens for a really long time. Does anyone know what is up? I tried posting on one other forum that I go to often and it seems to work out fine. I haven't tried any other forums though.

View 7 Replies View Related

Ubuntu :: Ssh Host Key Verification Failed

Feb 6, 2010

i'am running:

Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
kernel: 2.6.31-16-generic

pc and laptop are connected via switch. hard wired and static ip on ubuntu side is a wlan running connected to the internet. on my laptop: i am running:

Distributor ID: SuSE
Description: SuSE Linux 9.0 (i586)
Release: 9.0
Codename: n/a
kernel: 2.4.21-99-default ( year 2004 )

on unbuntu side i use: SSH-2.0-OpenSSH_5.1p1 Debian-6ubuntu2. on suse side i use: SSH-1.99-OpenSSH_3.7.1p2. both sides are using: Protocol 2 and ServerKeyBits 768 and now my problem. i can connect from ubuntu to suse using ssh without a problem. when i try to connect from suse to ubuntu i always get: Host key verification failed and nothing else. no hint about middle man attack or so. no change to answer -> save the new key. the permissions of ~/ssh my both sides are id_rsa.pubcorrect i think ( drwx------) and the permissions of : authorized_key, id_rsa, known_hosts are all - -rw------- 1 ( not linked or so ).

View 2 Replies View Related

Software :: K3b Stopping During The Verification Phase?

Apr 13, 2010

I've been plagued with this problem for weeks. It finishes writing the DVD but after it ejects and reloads, it doesn't go through the verification process. Yet I never fail to hand-verify the DVD using 'cmp'.

In this case today I created a multi-directory DVD and had an .iso image made first. It's still sitting there in /tmp (with a backup copied to /opt so I can close out k3b). How would I verify the .iso against what's on the DVD? How does k3b do it? Hopefully this means a command line solution.

BTW what are the command line apps for burning and verifying a DVD? I'm not so hot on graphical apps for this task anymore.

View 2 Replies View Related

General :: Avoid SSH's Host Verification For Known Hosts?

Mar 29, 2010

I get the following prompt everytime I try to connect a server using SSH.

I type "yes", but is there a way to aovid this?

The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.

RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.

Are you sure you want to continue connecting (yes/no)?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved