If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I would like to check price between Hong Kong and Kuala Lumpur in Ecomony class everyday, but it requires to input locations for input selections. After I select locations and class and click search, it used method="post" instead of get, I would like to know whether it is possible to replicate this action using a single URL or not, so I don't need to select the locations and class everyday for checking price. If the web page used method="get", then it would be easy to replicate this action, since all locations and class will be add to the parameter of URL.

It is possible to dump the post parameters, using PHP or JavaScript. That would allow you to inspect the parameter names and content. Then you could write your own front-end pre-setting the locations. So, yes, it is possible.

On reflection you might not even need to dump the parameters. If you save the web page locally (all major browsers have this facility) you could inspect the web page for the location input, and pre-set it. That might be easier. However, there could be a problem with retaining control. Such a web site is most likely to have extensive server functionality that is not apparent from the web page delivered to the client. But you can try...

A further thought... If the web site initially takes GET parameters then POST, it may be possible to pass the GET parameters anyway. It depends on how the arbitration between GET and POST parameters has been written. So you could try setting up an icon to launch the web page with the locations set in the GET parameters, and see what happens...

"It is possible to dump the post parameters, using PHP or JavaScript. That would allow you to inspect the parameter names and content. Then you could write your own front-end pre-setting the locations. So, yes, it is possible. "

It is too difficult to achieve without understanding PHP or JavaScript, furthermore, it may require to install server to perform this task.

... If you save the web page locally (all major browsers have this facility) you could inspect the web page for the location input, and pre-set it. That might be easier. However, there could be a problem with retaining control. Such a web site is most likely to have extensive server functionality that is not apparent from the web page delivered to the client. But you can try...

I try that it does not work, because the parameter cannot be saved using this approach.

... If the web site initially takes GET parameters then POST, it may be possible to pass the GET parameters anyway. It depends on how the arbitration between GET and POST parameters has been written. So you could try setting up an icon to launch the web page with the locations set in the GET parameters, and see what happens...

It is too difficult to achieve without understanding PHP or JavaScript, furthermore, it may require to install server to perform this task.

But you asked if it were possible, not if it were easy.

Originally Posted by oem7110

I try that it does not work, because the parameter cannot be saved using this approach.

I meant that the parameter name and content should be apparent from the form control. I.e. There should be SELECT tags in the HTML that take the flight departure and destination airports. I'll have a look at it.

Originally Posted by oem7110

It seems impossible to guess parameters for GET.

You indicated that the site switched to POST parameters AFTER the source and destination were input. If so the parameters should be visible in the URL.