473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to post username and password to .cgi form

Hie,

I am trying to post username and password to a .cgi form from a console based unix terminal.
Is it possible for posting data using Perl script?

Deperately looking out for suggestions/help..

Thanks
Mar 19 '08 #1
3 3290
KevinADC
4,059 Expert 2GB
Are you running a CGI script? Normally you would use a CGI form to pass data via HTTP to a CGI script. You can pass data to a perl script via the command line, the simplest way:
Expand|Select|Wrap|Line Numbers
  1. perl script.pl var1 var2 var3
but the perl script has to be written to get data from the command line and not from a CGI form. You can use the CGI module in 'debug' mode to run CGI scripts from the command line and pass in data. See the CGI module documentation for details.
Mar 19 '08 #2
Actually its .cgi form..and i was to post login data for authentication.
Could we download the cgi form and execute it ???

I have never tried my hands on cgi & perl scripting..
Please advise
Mar 20 '08 #3
KevinADC
4,059 Expert 2GB
Actually its .cgi form..and i was to post login data for authentication.
Could we download the cgi form and execute it ???

I have never tried my hands on cgi & perl scripting..
Please advise

You lost me.Forms don't do anything except send data, you need a script on the server to process the data. If you already have a script that does some kind of authentication all you need to do is create a form and send the data to the script. If you do not have a script you will have to write one.
Mar 20 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: David E. Smith | last post by:
I want to redirect input from one page to another, but it's POST content. If it were GET, I could just do something like: header("Location: /new/form.php?a=1&b=2") I can't rewrite the...
2
by: Bartosz Wegrzyn | last post by:
Hi, I have simple web with authentication. My main page looks like this: <?php include ("nav.htm"); include ("auth.php"); $menu = $_GET;
1
by: Manuel | last post by:
I have to log into a website and retrieve some information. The problem is that the post isn't "normal". I'm used to passing post values in the form of: Variable1=Value1&Variable2=Value2 etc. I...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
8
by: Laith Zraikat | last post by:
I am trying to invoke a post request from code behind of an asp.net page using "WebClient" object, and I want the user to be redirected to the action url as well. So far Ive been able to send...
2
by: MOUSTAFA ARAFA | last post by:
I want to pass (POST) username & password from my page to another asp page, I can't do anything on that page, this page for other system, and I can't touch or even change anything on it. Can...
1
by: John Braham | last post by:
I have a slight wall headbutter which I'm hoping someone will have an idea for (I'd be very grateful!). Basically I'm trying to make a form post to an asp page programatically from within VB.NET...
0
by: barrybevel | last post by:
Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302...
1
by: micksitup | last post by:
hi all. I have 3 files:- Pick_moduser.php do_moduser.php show_moduser.php problem is it just doesnt want to pass anything through
6
by: rpcchandu | last post by:
Hi Coders, I have to redirect from my server to the different server page by simulating the POST method submit from the Controller file, I tried using post_via_redirect, but could not succeed......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.