Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


nate

6473 posts

Uber Geek

Retired Mod
Trusted
Lifetime subscriber

#34395 23-May-2009 17:05
Send private message

If I post some variables between Page A and Page B, then on Page B do another post to Page C, will the variables from the first post, be available on Page C? (so subsequent posts pass over from page to page)

I'm thinking not, but a network device I'm screen scraping must be doing it this way, as there doesn't seem to be any hidden form fields (it's all CGI scripts if that makes any difference).

Am I wrong?

Create new topic
Ragnor
8218 posts

Uber Geek

Trusted

  #217260 23-May-2009 17:15
Send private message

Hmm good question, I would guess state is being stored on the server somehow.

If you are using Firefox get the HttpFox addon and you can inspect the post data and http requests very easily.

Example:




mjb

mjb
996 posts

Ultimate Geek

Trusted

  #217262 23-May-2009 17:30
Send private message

No, you'll only get them if there's a variable in the GET URL (has "?variable=value"), or is being posted from a form.

You'll find that the device is actually using cookies.




contentsofsignaturemaysettleduringshipping


RedJungle
Phil Gale
1108 posts

Uber Geek

Trusted
Red Jungle
Subscriber

  #217273 23-May-2009 18:08
Send private message

mjb's onto it.

This reminds me of maintaining state on classic asp. For this to work page B would have to be requesting the posted params from Page A, then assigning them to a local form input (usually a hidden field), where they would get posted again on that page submit.



nate

6473 posts

Uber Geek

Retired Mod
Trusted
Lifetime subscriber

  #217407 24-May-2009 13:47
Send private message

mjb: No, you'll only get them if there's a variable in the GET URL (has "?variable=value"), or is being posted from a form.

You'll find that the device is actually using cookies.


Good find with the HttpFox Ragnor but still no luck.

I've checked with that plugin, and the page doesn't send any ID in post, cookies or get.  Can you get previous post variables through the url referrer possibly?

I have no idea how they are passing an ID through still!


RedJungle
Phil Gale
1108 posts

Uber Geek

Trusted
Red Jungle
Subscriber

  #217415 24-May-2009 14:56
Send private message

Perhaps it's maintaining state server side? based on IP or something? wouldn't surprise me if it was some nasty method, given that it's a piece of hardware which isn't really designed for mainstream web traffic.

mjb

mjb
996 posts

Ultimate Geek

Trusted

  #217419 24-May-2009 15:13
Send private message

I was thinking exactly that. Are you sure there's no cookie for it nate? check the browser cookie store, it's a better place.. there's a dialog that lists them in firefox, I forget where, I'm a Chrome convert.

edit: and looking at the URLs, it's an interesting looking device... :)




contentsofsignaturemaysettleduringshipping


chiefie
I iz your trusted friend
5877 posts

Uber Geek

Retired Mod
Trusted
Lifetime subscriber

  #217423 24-May-2009 15:26
Send private message

What about a better use of JSONP/Web Service?




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 


 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
nate

6473 posts

Uber Geek

Retired Mod
Trusted
Lifetime subscriber

  #217557 24-May-2009 22:52
Send private message

mjb: I was thinking exactly that. Are you sure there's no cookie for it nate? check the browser cookie store, it's a better place.. there's a dialog that lists them in firefox, I forget where, I'm a Chrome convert.

edit: and looking at the URLs, it's an interesting looking device... :)


No cookies, I've had another play around and it seems the device keeps track using some internal processes.

The device is a cellular gateway, I'm writing an API wrapper to send/receive and parse SMS.  It has some very strange naming conventions, no consistency at all.

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.