BBO Discussion Forums: ServerXMLHTTP60 retrieval of MyHands data - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ServerXMLHTTP60 retrieval of MyHands data Working for years, now fails with cookie rejection

#1 User is offline   codger 

  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 2010-October-26

Posted 2025-February-07, 13:12

I've been retrieving BBO data to score club games since March 2020 using Excel. The code (VBA) is largely unchanged since those times and certainly the overarching method: submit a cookie, retrieve traveller data from MyHands, score in a spreadsheet, export to club website.

I invoke a MSXML2.ServerXMLHTTP60 object and first GET the list of travellers via https://www.bridgeba...8489-&offset=0. But that now fails (on 6.36.2) having worked last week (6.35.?). The response headers returned are,

Cache-Control: no-store, no-cache, must-revalidate
Date: Fri, 07 Feb 2025 18:36:06 GMT
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Server: nginx
Set-Cookie: myhands_token=deleted; expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0

All this is from my personal login - which I've used for years. Curiously, if I switch to the Virtual Club username (discovering and submitting its cookie in the request), it *does* work. The return is then,

Cache-Control: private
Date: Fri, 07 Feb 2025 18:20:01 GMT
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Server: nginx

Yet, aside from the cookie string, the same call is used. It's as if my cookie is no longer valid. My access in a browser is unaffected and I have checked the storage internals and the cookie is as used. I've done all manner of refreshes and reloads but am a loss to explain. I did wonder about changing my password but I thought I'd ask here first...

Any ideas?

[Edited for off-by-one version numbers]
0

#2 User is offline   diana_eva 

  • PipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 5,026
  • Joined: 2009-July-26
  • Gender:Female
  • Location:bucharest / romania

Posted 2025-February-08, 03:54

@codger, thank you for the detailed explanation.

This will be resolved next week - it was caused by some security changes in our setup.

#3 User is offline   codger 

  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 2010-October-26

Posted 2025-February-08, 06:40

View Postdiana_eva, on 2025-February-08, 03:54, said:

@codger, thank you for the detailed explanation.

This will be resolved next week - it was caused by some security changes in our setup.


Thank Diana - I'll check back with interest.
0

#4 User is offline   diana_eva 

  • PipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 5,026
  • Joined: 2009-July-26
  • Gender:Female
  • Location:bucharest / romania

Posted 2025-February-11, 15:01

This has been resolved.

#5 User is offline   codger 

  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 2010-October-26

Posted 2025-February-13, 11:09

Unfortunately, programmatically, I can no longer get any data back from MyHands. My attempts with various logins now all fail - not just mine.

I see that the myhands_token cookie has changed: previously it was username%7C (i.e. username|) followed by 40 hex characters - now it's just the hex string. Do I need another cookie? The failure text is as above,

2025-02-13 16:57:51 https://www.bridgeba...14039-&offset=0
Cache-Control: no-store, no-cache, must-revalidate
Date: Thu, 13 Feb 2025 16:57:50 GMT
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Server: nginx
Set-Cookie: myhands_token=deleted; expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0

I'm somewhat at a loss as now, even my workaround of using the cookie of tournament host fails.
0

#6 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,656
  • Joined: 2004-August-21
  • Gender:Male

Posted 2025-February-13, 16:31

Sorry, we messed up when we changed the cookie format and took the username out. We'll fix it again shortly.

#7 User is offline   codger 

  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 2010-October-26

Posted Yesterday, 13:51

Thanks, it's working now.

The forumlation of the hex string has changed so the cookie needs to be retrieved afresh, but that's no real trouble.
0

#8 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,656
  • Joined: 2004-August-21
  • Gender:Male

Posted Yesterday, 17:19

The change to the hex string is a consequence of the change to the way we store passwords in the database.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users