Advertisement

03.12.2008 at 04:36AM PDT, ID: 23234691
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

How to respond (with CGI) to a complex (javascript?) form

Tags: HTML perl
My CGI script (perl) needs to log in to a bulletin board (to regularly post updates there).

This used to work:

$response = $ua->request(POST, 'http://p099.ezboard.com/BBSUser.authoriseUser', [login=> 'name', password=>'password']);

However, recently the bulletin board was "upgraded" and now the source of the page where you log in
(http://www.yuku.com/) has this funky stuff for it's login form:

<form action="" class="login-form" method="post"><div><label>Username or E-mail:</label><input name="login" type="text" title="enter your username or e-mail address" class="mgr-text sliver-login-username"><label>Password:</label><input name="password" type="password" title="enter your password" class="mgr-text sliver-login-password">
                      <input type="submit" class="sliver-button" value="Log In"></div>
                  </form>

(and obviously other stuff in the header that might relate to this)

How do I go about forming a response to this form?

(Ancilliary/alternative question: how can I look at what my browser (Firefox) sends when I press the log in button manually?)

Thanks!



Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: GreenAsJade
Solution Provided By: MatthewP
Participating Experts: 3
Solution Grade: A
Views: 10
Translate:
Loading Advertisement...
03.12.2008 at 05:33AM PDT, ID: 21105183

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.12.2008 at 11:09AM PDT, ID: 21108981

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.12.2008 at 01:38PM PDT, ID: 21110503

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.12.2008 at 02:10PM PDT, ID: 21110799

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.13.2008 at 02:15AM PDT, ID: 21114368

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.13.2008 at 05:36AM PDT, ID: 21115475

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.13.2008 at 06:28AM PDT, ID: 21115935

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.13.2008 at 01:07PM PDT, ID: 21120314

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
03.12.2008 at 05:33AM PDT, ID: 21105183
That form doesn't look particularly funky, more like the code behind has changed hence the URL you have been posting to. With nothing in the form action attribue it will just post back to the same page the form is on, have you tried posting to that new URL in your code? I cant see why else this wouldn't work unless they're checking referers in the script somewhere behind the scenes.

Matt
Accepted Solution
 
03.12.2008 at 11:09AM PDT, ID: 21108981
with firefox, get firebug. This tool is invaluable!
Assisted Solution
 
03.12.2008 at 01:38PM PDT, ID: 21110503
Thanks for these suggestions... will try both and get back to you!

(Shows how long since I looked at HTML then... it looks funky to me :) )

GaJ
 
03.12.2008 at 02:10PM PDT, ID: 21110799

Rank: Sage

The additional attributes in the form HTML are mostly just CSS.  That just affects how the form/text/buttons are displayed.
 
03.13.2008 at 02:15AM PDT, ID: 21114368
MatthewP was spot on, I just got spooked  by the CSS, which as Tintin points out is all that mess amounts to.

I would like to give all three answers points, but first I would like to follow up by asking "how does firebug help here?"

I can see that it helps analyse pages that you surf _to_, but I can't see how to ask it "what is by browser sending to the server?".   As you can see, I need to "reverse engineer" the way to respond to this web site's forms to enable my script to surf automatically, so I would love to know what my browser sends when I surf manually.

Thanks!

GaJ
 
03.13.2008 at 05:36AM PDT, ID: 21115475
I've only ever used firebug as a javascript debugger, and only minimally so I cant help here.

If I want to see exactly how a script sees a form, id just copy the source and post it to a different URL that just prints out all the values it's received. Eg:

<?php
//show_form_post.php - display all GET and POSt data submitted by a form
foreach ($_REQUEST as $var => $value){
print $var . " = " . $value . "<br />";
}
?>

The web developer addon for firefox may help you too, and Id recommend anyone in web development gets this for a hundred reasons. In your case, under 'Display Form Details' it will display all the html code that generates the form by each element - including hidden fields - which at least saves looking through the source code. The 'View Form Information' button will pull all the HTML apart for all forms on the page and arrange it into tables of attributes, sizes etc for easy view. This wont help if you've got javascript re-writing form values on-submit, but in many cases its very useful.

Matt




 
03.13.2008 at 06:28AM PDT, ID: 21115935
in firebug, there is a 'Net' tab. If you click on it, you can see the request/response headers, cookies, etc sent back and forth
 
03.13.2008 at 01:07PM PDT, ID: 21120314

Rank: Sage

I haven't used firebug myself, but if you want just a HTTP monitor, then livehttpheaders is great.

http://livehttpheaders.mozdev.org/
Assisted Solution
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628