Forum Moderators: Robert Charlton & goodroi
I have a question that may be someone here knows...
I'm building a new site on asp.net that on almost all pages uses method post instead of a normal get, all the "state" of the site is saved on a viewstate that is uploaded on every post to the server... there is no parameters on the url
My question is, how Google/MSN/AdSense/etc bots acts on this situation? if a banner is displayed on a post for example, do the bot after a while do a get on that url? or may be it will just try to mimic the request and do a post instead?
And what happens with Google search engine crawler?
Thanks for your input
Using the POST method to maintain state is the wrong thing to do technically. It's not just bots that won't be able to view your pages, the users will have a hard time too. You're likely to cause problems with their back button and they won't be able to bookmark your pages properly or type a URL in to the address bar.
If you want to maintain state, you have two main options... Cookies and the GET method. You can also use IP addresses and HTTP authentication although these are not recommended for most situations.
I'd have a long hard look at the technology you are using. ASP.NET can be used but I'd stay well clear of any kind of postbacks if I were you, it just isn't right for the web.
But, how adsense bot, for example, even knows that the banner was used on a method post request?
Technically from javascript you can know this?
I have it working with post's for saving states and it has lot of advantages, and i don't want to change it.
I fixed all the history problems also and now the user can do back and forward without any problem...
I think I will give it a try as is.
If the banner page is only available via a POST request then adsense can't access it as it does not use POST requests, only GET requests. If your banner page is available on the same URI via a GET request then there is a chance it may see it.
>I have it working with post's for saving states and it
>has lot of advantages, and i don't want to change it.
Using POST requests to maintain state has NO advantages over GET requests for the same purpose.