Solved

recommend a php library to submit to this aspx form

Posted on 2013-06-29
3
451 Views
Last Modified: 2013-07-01
http://www.webcontinuum.net/dotnet_webform.aspx#form_input1
checkboxes, select menu, textbox
on submit tells client that input form control has been changed

what is a php library webbot you would recommend to submit to this form
0
Comment
Question by:rgb192
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 39287712
I wouldn't recommend any because it is not likely to work.  That page and form has several uniquely .NET features.  One is the "__VIEWSTATE" which  carries with it the 'state' of the page or application.  Another is "__EVENTVALIDATION" which tells the form 'action' page something about validating the inputs.  In addition, there is a lot of javascript on that page to handle different things.

What are you trying to do?
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 39288078
+1 for what DaveBaldwin said.  Web-site-scraping is a thing of the past, and for good reason.  In the long term it creates a brittle application that will fail.

Do not depend on any design pattern that tries to make automated submits of form data.  Forms are for human input, not machine input.  And the design of forms, especially when they use tokens or JavaScript, is intended to make it difficult or impossible for external programming to create automated submissions.

Can you get around the tokens and JavaScript?  Sometimes, but it takes a lot of programming.  And if a web service finds that unwanted automatic form submission is happening, they can add a CAPTCHA test to the form, and your application will be suddenly and permanently broken without notice.

Instead, go to the publisher of the web site or web service that you want to use.  Show them what you're trying to do.  Ask them to expose an API that will let you communicate directly with the application.  If they see economic value in your request, they will help you.  It may be as simple as making a direct POST-method request.  And if they don't want to help, there really isn't much you can do about it -- after all, they are the owner of the resource.
0
 

Author Closing Comment

by:rgb192
ID: 39290508
okay this form is complex with asp viewstate and javascript

thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question