Visitors can check out the Forum FAQ by clicking this link. You 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. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Is the postcode in the query string used to retrieve a resource? E.g. load up a list of addresses at that postcode? If so then a GET sounds about right to me.
The implied semantics of the http protocol (not that i'm saying you should necessarily following them) are GETs for retrieving resources, POSTs & PUTs for modifying/adding resources, DELETEs for deleting (if your web server does DELETEs) etc.
There might be perfectly good reasons to use a POST, but without knowing them it seems more 'proper' to use a GET (assuming my original assumption/guess was correct).
Ive just been completely stumped by a question a permie has asked me (please bear with me - I'm primarily a SQL dev).
I have a page that redirects to another page passing a postcode on the query string. Pretty standard stuff but he asked me why I'm doing a get instead of a post. And I couldn't really answer him.
Is the postcode in the query string used to retrieve a resource? E.g. load up a list of addresses at that postcode? If so then a GET sounds about right to me.
The implied semantics of the http protocol (not that i'm saying you should necessarily following them) are GETs for retrieving resources, POSTs & PUTs for modifying/adding resources, DELETEs for deleting (if your web server does DELETEs) etc.
There might be perfectly good reasons to use a POST, but without knowing them it seems more 'proper' to use a GET (assuming my original assumption/guess was correct).
Post can sort of hide the data from the url, which is cleaner in my eyes.
If you need to use SSL then the url is not encrypted, but the data in a post is.
And in this instance that URL does not exist. I mean Google has intelligence but not so much that it can input post code and crawl a URL.
Anyway, POST makes sense if the data is quite huge since QS has a limit. Advantage of GET is that the URL can be directly loaded without the need to re post the data.
One of the advantages of using the GET method is you can bookmark the URL and search engines will crawl your page and index it. With a post this cannot happen.
One of the advantages of using the GET method is you can bookmark the URL and search engines will crawl your page and index it. With a post this cannot happen.
If the page is using the postcode to make a different page for each postcode then it should by right have a unique URL with the postcode in it. So a Get.
That's the answer I needed earlier! It would have shut the permie up...
If the page is using the postcode to make a different page for each postcode then it should by right have a unique URL with the postcode in it. So a Get.
Ive just been completely stumped by a question a permie has asked me (please bear with me - I'm primarily a SQL dev).
I have a page that redirects to another page passing a postcode on the query string. Pretty standard stuff but he asked me why I'm doing a get instead of a post. And I couldn't really answer him.
This isn't sensitive data - is there any reason to use a post over a get in this scenario? Or for that matter a get over a post? I should imagine a post involves squirting more markup over the wire but I have an all encompassing form in the master page anyway so I can't really use that argument.
I'm guessing that in this instance it doesn't matter and it is just a spurious question from a permie.
Leave a comment: