473,385 Members | 1,730 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,385 software developers and data experts.

fetching images manually from a website that uses a sessionid variable

C3
Hi everone.

I'm trying to write a shell script that fetches a number of images from a
map website (www.whereis.com.au). Basically, the page asks you for a street
address and then queries the server in a strange way, and then displays the
map you asked for. It then allows you to scroll in different directions from
that map.

My aim is to be able to write a program that will take a street address,
query the website, and return the initial map, and the 8 maps around it. The
problem is that I can't figure out how the query works. Here is a little
snippet (which I captured with ethereal). This is the initial request, with
the address "200 arden street randwick":

POST
/search/result.jhtml;$sessionid$TREFXTYAABL4RS0Z2WLCDTI?_D ARGS=%2Fsearch%2Fr
esult.jhtml HTTP/1.1
Host: www.whereis.com.au
<various browser headers>
Referer:
http://www.whereis.com.au/search/result.jhtml;$sessionid$TREFXTYAABL4RS0Z2WL
CDTI?_DARGS=%2Fsearch%2Fsearch.jhtml.2
Content-Type: application/x-www-form-urlencoded
Content-Length: 1067

streetNumber=+200&_D%3AstreetNumber=+&streetName=a rden&_D%3AstreetName=+&str
eetType=ST&_D%3AstreetType=+&locality=randwick&_D% 3Alocality=+&postCode=2031
&_D%3ApostCode=+&message=&_D%3Amessage=+&errorPage =result.jhtml&_D%3AerrorPa
ge=+&searchBlob=1%2Chttp%3A%2F%2Fmap3.whereis.com. au%2Ftelmap%2Fmap%2Fmap229
59.gif%2Chttp%3A%2F%2Fmap3.whereis.com.au%2Ftelmap %2Fmap%2Fcmap22959.gif%2C2
57+H12%2C255%2C3%2C4.0000%2C1304%2C920%2C338918.3% 2C6246113.8%2C151.25759%2C
-33.91297%2C0%2CSYDNEY%2C9351%2C2%2C0%2C1%2C1%2C300 0011%3A151.25759%3A-33.91
297&_D%3AsearchBlob=+&blob=1%2Chttp%3A%2F%2Fmap3.w hereis.com.au%2Ftelmap%2Fm
ap%2Fmap22959.gif%2Chttp%3A%2F%2Fmap3.whereis.com. au%2Ftelmap%2Fmap%2Fcmap22
959.gif%2C257+H12%2C255%2C3%2C4.0000%2C1304%2C920% 2C338918.3%2C6246113.8%2C1
51.25759%2C-33.91297%2C0%2CSYDNEY%2C9351%2C2%2C0%2C1%2C1%2C300 0011%3A151.257
59%3A-33.91297&_D%3Ablob=+&command=PAN&_D%3Acommand=+&ac tion=SEARCH&panDirec
tion=E&zoomLevel=2&legend=&proximitySearchType=&_D %3AproximitySearchType=+&_
D%3ArecenterPoint=+&proximitySearchID=0&_D%3Aadver tiserID=+&_D%3AadvertiserI
D=+
Now, I can obviously see my search parameters in there, but how would I use
these in lynx to get the initial webpage? Can I just take these all as POST
variables, or is there something I have to do with the sessionid?
thanks,

Jul 20 '05 #1
0 1902

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

Similar topics

7
by: lawrence | last post by:
In my style sheet I've set the links like this: a:link{ text-decoration:none; } I did that for the pseudo classes and I also did that for the image tag. Yet there are still link lines...
10
by: David P. Donahue | last post by:
When I wrote websites in VB .NET, I would often put functions in Global for all the pages to call. Now, in C#, doing so results in "references to non-static objects" and whatnot. I realize what...
4
by: moondaddy | last post by:
I have an app where users will upload photos to their shopping cart. When they review their cart I need to include a light weight thumbnail of the image they uploaded. how can I take the image a...
4
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images...
4
by: Kenny | last post by:
Hi, I have created an ASPX Dim ss As HttpSessionState ss = HttpContext.Current.Session HttpContext.Current.Session("tesAt") = "testValue" Response.Write(ss.SessionID() & "|<br>")...
0
by: Pavils Jurjans | last post by:
Hello, I have two questions regarding the Session state. 1) Is there some way on the server to programmatically access the other active sessions? Well, perhaps the question should be...
1
by: goodweather | last post by:
Hello, I have a strange problem with my new website. I have installed IIS 5.1 (Win XP pro). The website runs pretty well but sometimes the web browser does not display all the images that should...
3
by: CF FAN | last post by:
hi i am trying something like this but is not working.. <cfif document.recordcount IS NOT 0> <cfhttp method="get" url="http://abc.com/news" resolveurl="yes" timeout="60" throwonerror="yes" ...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...

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.