Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST parameter for On-line Find_Orb page to prefill observations automatically #46

Open
void4 opened this issue Jul 20, 2023 · 2 comments

Comments

@void4
Copy link

void4 commented Jul 20, 2023

I'd like to link from our page (https://deeprandomsurvey.org/object/DRS044) directly to the https://www.projectpluto.com/fo.htm with observations already filled in.

Could you add a POST parameter so when https://www.projectpluto.com/fo.htm is opened and it is supplied, the TextArea element is already filled in?

Due to the character limit (~2048) of URLs a URL parameter approach would probably not work in situations with more than a few lines of observations.

Edit: On another note, the existing URL parameters don't seem to work anymore either - using the example from https://www.projectpluto.com/eph_expl.htm#hints

http://www.projectpluto.com/fo.htm?obj_name=Phreddo&mpc_code=J95&epoch=-11&year=2017%20jan%2019&n_steps=13&stepsize=10m

the fields are not filled in

@Bill-Gray
Copy link
Owner

fo.htm does use POST (hit Ctrl-U to see). But the enctype="multipart/form-data" part may be throwing you off.

I think all I'll have to do here is to provide an fo_post.htm' page, identical to fo.htm` except that it omits that bit. Should be able to do that when I'm back home.

Interesting point about the URL parameters failing. I know it used to work... unfortunately, I've not used it in a long time, and have no real clue as to when it broke or why. Will investigate.

@Bill-Gray
Copy link
Owner

Okay, I see what I did wrong with the URL. It should point to the CGI code, not to the Web page. Example, also modified to point to a for-real object :

https://www.projectpluto.com/cgi-bin/fo/fo_serve.cgi?obj_name=2020%20PD7&mpc_code=J95&epoch=2020%20aug%2011&year=2017%20jan%2019&n_steps=13&stepsize=10m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants