473,721 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending username password to a webpage

Hi,

Is there a way to essentially simulate populating a text box and
calling a submit button on a webpage? I want to write an app that
gets a users information from a website and then uses that to get
information from another site. The first site requires a log in.

Thanks for any advice that gets me in the right direction.

Thanks.

Kevin
Nov 21 '08 #1
2 4037
On Thu, Nov 20, 2008 at 7:52 PM, KDawg44 <KD*****@gmail. comwrote:
Hi,

Is there a way to essentially simulate populating a text box and
calling a submit button on a webpage? I want to write an app that
gets a users information from a website and then uses that to get
information from another site. The first site requires a log in.
There's the mechanize library for programmatic web browsing:
http://wwwsearch.sourceforge.net/mechanize/

Cheers,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
>
Thanks for any advice that gets me in the right direction.

Thanks.

Kevin
--
http://mail.python.org/mailman/listinfo/python-list
Nov 21 '08 #2
r0g
KDawg44 wrote:
Hi,

Is there a way to essentially simulate populating a text box and
calling a submit button on a webpage? I want to write an app that
gets a users information from a website and then uses that to get
information from another site. The first site requires a log in.

Thanks for any advice that gets me in the right direction.

Thanks.

Kevin
I dread to think why you want to do that but you probably need urllib or
urllib2.
You basically need to figure out if the webpage is using GET or POST to
send the form data and then URLencode and send your data as a request.

Most forms these days will use POST.

e.g. postvars = urlencode( { "name":"joh n", "tel":"23847923 89" } )
result = urllib.urlopen( "http://www.example.com/form1",postvars )
Roger.
Nov 21 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2797
by: Candice | last post by:
Please somebody help! I've deleted my admin username and password which was initially set at test. Now I can't log into my website as the administrator. How do I put Username and Password back so that I can set my own password and username again, log in to my website and edit it. Which file do I have to edit, and where do I re-set the Username and Password? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system...
2
18567
by: john brown | last post by:
There is a web page that I access frequently and would like to automate the authentication of the username and password. I would like to user a perl script but I'm not really sure about the steps. If someone could point me in the right direction. I don't know if it's this simple but wouldn't it just be a matter of using the LWP module. Calling the webpage and passing in the parameters? Any help would be appreciated. <html>...
3
18845
by: Hans | last post by:
Hello, I am trying to create a Webrequest. The used Uri is something like "http://username@domain.com:password@www.shfgshfge.com". Note that the username contains an "@"-character. I tried two ways. Neither does work. 1. Directly creating an Uri: Uri u=new Uri("http://username@domain.com:password@www.shfgshfge.com");
6
2415
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
4
3132
by: splicemix | last post by:
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time getting a SMTP script running. While the Drupal feedback module and the new account creation works fine in terms of sending of mails, I am having some problems with the sending of password reminder emails. warning: Cannot modify header information -...
3
7724
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce value for the UserName token. Is it possilbe at all to do this from VBScript (or jscript?)? I know I will be limited with what I can do with the SOAP message. Eg/ can't sign/encrypt it etc. Thanks,
0
1862
by: ranishobha21 | last post by:
Dear All, I am sending the code below.i have not specifies the host name.i want to send command to server and get the response from it.but it doesnt work.when i connect with the telnet using ssh to remote machine it works. i type telnet hostname->username->password and then i can login to the
0
1236
by: Christie | last post by:
I am having a hard time sending meeting updates to attendees. I can get the updated meeting to save to the organizer's calendar, but then when I send it the meeting is sent to the attendee as a new meeting instead of an update (It seems that Exchange assigns a new UID when the Save method is called, so the attendees' calendar can't link it with the original UID?!). If I try to send without saving first, the old meeting is sent...
0
1026
by: bhargavigupta | last post by:
hi, In my application i am using smtp server for sending mails i rote the host name,port in the web.config file like this <configuration> <configSections> <sectionGroup name ="System.net" > <section name="authenticationModules" type="System.Net.Configuration.NetAuthenticationModuleHandler"></section> </sectionGroup> </configSections> <system.net>
0
8840
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9367
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9131
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.