473,804 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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;$s essionid$TREFXT YAABL4RS0Z2WLCD TI?_DARGS=%2Fse arch%2Fr
esult.jhtml HTTP/1.1
Host: www.whereis.com.au
<various browser headers>
Referer:
http://www.whereis.com .au/search/result.jhtml;$s essionid$TREFXT YAABL4RS0Z2WL
CDTI?_DARGS=%2F search%2Fsearch .jhtml.2
Content-Type: application/x-www-form-urlencoded
Content-Length: 1067

streetNumber=+2 00&_D%3AstreetN umber=+&streetN ame=arden&_D%3A streetName=+&st r
eetType=ST&_D%3 AstreetType=+&l ocality=randwic k&_D%3Alocality =+&postCode=203 1
&_D%3ApostCode= +&message=&_D%3 Amessage=+&erro rPage=result.jh tml&_D%3AerrorP a
ge=+&searchBlob =1%2Chttp%3A%2F %2Fmap3.whereis .com.au%2Ftelma p%2Fmap%2Fmap22 9
59.gif%2Chttp%3 A%2F%2Fmap3.whe reis.com.au%2Ft elmap%2Fmap%2Fc map22959.gif%2C 2
57+H12%2C255%2C 3%2C4.0000%2C13 04%2C920%2C3389 18.3%2C6246113. 8%2C151.25759%2 C
-33.91297%2C0%2C SYDNEY%2C9351%2 C2%2C0%2C1%2C1% 2C3000011%3A151 .25759%3A-33.91
297&_D%3Asearch Blob=+&blob=1%2 Chttp%3A%2F%2Fm ap3.whereis.com .au%2Ftelmap%2F m
ap%2Fmap22959.g if%2Chttp%3A%2F %2Fmap3.whereis .com.au%2Ftelma p%2Fmap%2Fcmap2 2
959.gif%2C257+H 12%2C255%2C3%2C 4.0000%2C1304%2 C920%2C338918.3 %2C6246113.8%2C 1
51.25759%2C-33.91297%2C0%2C SYDNEY%2C9351%2 C2%2C0%2C1%2C1% 2C3000011%3A151 .257
59%3A-33.91297&_D%3Ab lob=+&command=P AN&_D%3Acommand =+&action=SEARC H&panDirec
tion=E&zoomLeve l=2&legend=&pro ximitySearchTyp e=&_D%3Aproximi tySearchType=+& _
D%3ArecenterPoi nt=+&proximityS earchID=0&_D%3A advertiserID=+& _D%3Aadvertiser I
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 1917

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

Similar topics

7
23026
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 around the images. Why? It's on this page:
10
6782
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 that means and all, but what I'm wondering is what's the best way around it? Say, for example, I want a function that takes a username and a password and returns true or false if it's a successful login, and I want any page or usercontrol in the...
4
1359
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 user uploaded (PixOfMom.jpg at 600k) and convert it to a thumbnail and put into the image url of a .net image control using vb.net 1.1? Thanks! -- moondaddy@nospam.com
4
2508
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 throughout using a relative directory structure, such as 'images/topbanner.jpg'. I tried changing this to ~/images/topbanner.jpg and .../images/topbanner.jpg, but this didn't work locally so I didn't even bother trying it out remotely. Tthe problem...
4
535
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>") Response.Write(HttpContext.Current.Session("tesAt") & "|<br>") Response.Write(HttpContext.Current.Session(ss.SessionID) & "|<br>")
0
1223
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 formulated not "is there a way", but "how to do it", because that almost inevitably must be possible - after all, the ASP.NET enables access for all the session users to their respective sessions. Perhaps studying the full request lifetime, and finding...
1
2944
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 be present on a page (the browser displays a red "X" instead). When I request the page again, the missing images are displayed after reloading the page a few times, or after I request these files manually by typing their name in the address window of...
3
2880
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" path="http://www.xyz.co.in/news" file="key.cfm"></cfhttp> <cfsavecontent variable="getdata"> <cfoutput>#cfhttp.FileContent#</cfoutput> </cfsavecontent> <cfif getData is false> <cflocation url="abc.cfm" addtoken="No">
5
13389
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 http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
9715
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
9595
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
10603
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...
1
10356
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,...
0
9176
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
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...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.