473,586 Members | 2,682 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I automate browsing of this site?

I'm trying to automate this for a mass-processing of GDC number
information (scrapping). I've tried everything I can think of and
every example I've come across to no avail. The root site is:
http://www.dcor.state.ga.us/GDC/Offe...OffQryForm.jsp

posting the following:
http://www.dcor.state.ga.us/GDC/Offe...isclaimer=True

Yields the form I need to fill out to access individual GDC records.
On this page, I need to use option UNO_NO (gdc number) and pass along
an actual GDC number (of which I have thousands to process).

Problem is that the form doesn't post to itself:
<form method="post" action="OffQryR edirector.jsp"

If I try opening a webrequest with:
http://www.dcor.state.ga.us/GDC/Offe...enderId=365172

It just returns me to the main page. :(

Any ideas whatsoever would be extremely appreciated. I've tried
cookies (as best as I understand them), multiple webrequests, setting
autoredirect to true, etc. This doesn't seem like an absurd request,
so I'm hoping I'm missing some piece of understanding that clears up
the automation of this process. Thanks!

Jun 27 '06 #1
1 1452
Hi Branden,

If you get this working, what happens if they change the page? Rename a
field? Rename the page? How will your program handle a change in
javascript validation logic that prevents the page from posting some time
after you finally get it working?

A web service might be much better for you. Try contact the site admin and
see if there is a better way. Will they let you connect directly to their
database?

Are you displaying the HTML that is retrieved from the WebRequest in your
application? Could you just use a WebBrowser control instead?
Problem is that the form doesn't post to itself:
<form method="post" action="OffQryR edirector.jsp"
That shouldn't matter if you pass all the data that it expects.
OffQryRedirecto r.jsp might do something simple like check the HTTP_REFERER
on POST. I don't think that HTTP_REFERER will be accessible to their server
when using a WebRequest object unless it's added by code but I'm not sure of
that.
If I try opening a webrequest with:
http://www.dcor.state.ga.us/GDC/Offe...enderId=365172

It just returns me to the main page. :(
Does OffQryRedirecto r.jsp expect just a query string? What about the
required post data?
This doesn't seem like an absurd request,
so I'm hoping I'm missing some piece of understanding that clears up
the automation of this process. Thanks!


Maybe not absurd but maybe not possible as well. Don't rule out the
possibility that it won't work. You may be forced to find another way. Try
my suggestion of contacting the site admin for a web service or data access
ability of some sort. That would probably be your best and only shot.

HTH
Jun 27 '06 #2

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

Similar topics

26
2465
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso = CreateObject("Scripting.FileSystemObject") set fold = fso.GetFolder(folderspec) for each subfolder in fold.subFolders Response.Write(subfolder.name & "<br>")
10
1923
by: Geoff Cox | last post by:
Hello Is it possibel to automate the access time allowed to a folder? I am using .htpasswd etc and would like to give say 0.5 hour access to users so that they can sample documents available on the web site... Cheers Geoff
5
3836
by: James Johnson | last post by:
Dear C#dex, You can automate a POST and interrogate the resulting HTTP stream using code such as: HttpWebRequest hwreq = (HttpWebRequest)WebRequest.Create(url); hwreq.Method = "POST"; hwreq.ContentType = "application/x-www-form-urlencoded"; hwreq.ContentLength = buffer.Length; hwreq.Proxy = new WebProxy("Gloriadias", true);
0
1653
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have deployed. As it turns out, some application groups are using our tool as a way to transfer dump files from our datawarehouse. Everything has been...
1
2116
by: WolfsonNYC | last post by:
Anyone know how to enable Directory Browsing using the Cassini web server on .Net 2.0 ? Right now it says HTTP Error 403 - Forbidden when I go to a folder on my web site. Thanks, JW
2
980
by: andrea | last post by:
I should make a page that modify the web.config file, appsettings area. For what I know, every modify to config file mean a reboot of the context application, so if a user is browsing on a web site, it mean losting session and everything .... and in a shopping cart scenario it's not exactly the best solution to implement. So before let...
3
1217
by: samadams_2006 | last post by:
On Yahoo Finance I can automate specific calls to the Web Site by changing the URL to: http://finance.yahoo.com/q?s=msft http://finance.yahoo.com/q?s=ibm http://finance.yahoo.com/q?s=aol I'd like to be able to do the same with the Web Site: http://perfectstocksite.com/
8
1299
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi all! Does anyone know of a way to keep a permanent url throughout a user's browsing? For example, if my web site's address is http://www.mysite.com, I have noticed that some sites keep that url 'permanent' somehow, i.e. doesn't change while e.g. clicking on a link! How is this accomplished? Maybe some sort of script?
2
3052
by: Joe Kovac | last post by:
Hi! I have a Web Site, where I turned directory browsing off. I want only one sub folder to be browsable: e.g. MyApp/Files/... How do I do that? Any setting in the web.config? Thanks Joe
0
7912
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...
0
7839
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...
1
7959
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...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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
0
1180
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...

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.