Re: Want to use url to post the data in form.
- From: Harlan Messinger <hmessinger.removethis@xxxxxxxxxxx>
- Date: Fri, 06 Feb 2009 09:02:58 -0500
Hongyi Zhao wrote:
Hi all,
I want to construct a url to do the same thing that a post form done,
e.g., username and password, is the data submitted by the form. What
should I do then just a constructed url to do the same thing?
Let me describe my issue in more detail:
Take the following url as a example:
http://proquest.umi.com/pqdweb
My institute is a subscriber of it and I've a username and pssword of
this library. In my case, I find that I've two choices to log into
it:
1- Go to the above url, and then fill the logon form by my username
and pssword, finally, click on the connect button.
2- Alternatively, I can only use the following url to logon:
http://proquest.umi.com/pqdweb?RQT=301&UserId=myusername&Passwd=mypssword&JSEnabled=1
where, the _myusername_ and _mypssword_ are the login credentials
of mine.
So, I want to konw the map rule from the first method to the the
second, i.e., construct a url to do the same thing as a post form
done.
IF the application that processes the submitted form doesn't distinguish between data sent in a POST request and and data included in the URL in a GET request, you can use a query string of the form field1Name=field1Value&field2Name=field2Value& ... &fieldnName=fieldnValue for the names and values of each of the n fields in the form. But if the application is set up to process only posted data, then there *is* no way to create a URL that will automatically work in a GET request.
.
- References:
- Want to use url to post the data in form.
- From: Hongyi Zhao
- Want to use url to post the data in form.
- Prev by Date: Want to use url to post the data in form.
- Next by Date: Named Constants [was Re: A problem for "fluid design" experts.}
- Previous by thread: Want to use url to post the data in form.
- Next by thread: Named Constants [was Re: A problem for "fluid design" experts.}
- Index(es):
Relevant Pages
|