Re: [Tutor] Query String
On 19/02/13 07:30, Sunil Tech wrote: Here i request, can you tell me what is Query String with some examples? It depends on the context but I suspect you mean in the context of a web app? In that case a query string is the bit at the end of a URL that includes the search parameters etc. Thus if I do a search on Google for query string the url used is: https://www.google.co.uk/#hl=ensugexp=les%3Bgs_rn=3gs_ri=psy- abtok=XeR8I7yoZ93k_zpsfFWQegcp=8gs_id=i7xhr=tq=query+string es_nrs=truepf=ptbo=dbiw=1375bih=897sclient=psy-aboq=query+st gs_l=pbx=1bav=on.2,or.r_gc.r_pw.r_cp.r_qf.bvm=bv.42553238,d.d2k fp=e58955d3a8f3f3a1 And everything after the uk/ is the query string. That particular search brings back lots of links about query strings. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Query String
Thank you Alan. On Tue, Feb 19, 2013 at 2:44 PM, Alan Gauld alan.ga...@btinternet.comwrote: On 19/02/13 07:30, Sunil Tech wrote: Here i request, can you tell me what is Query String with some examples? It depends on the context but I suspect you mean in the context of a web app? In that case a query string is the bit at the end of a URL that includes the search parameters etc. Thus if I do a search on Google for query string the url used is: https://www.google.co.uk/#hl=**ensugexp=les%3Bgs_rn=3gs_**ri=psy-https://www.google.co.uk/#hl=ensugexp=les%3Bgs_rn=3gs_ri=psy- abtok=XeR8I7yoZ93k_zpsfFWQeg**cp=8gs_id=i7xhr=tq=query+**string es_nrs=truepf=ptbo=dbiw=**1375bih=897sclient=psy-ab**oq=query+st gs_l=pbx=1bav=on.2,or.r_gc.**r_pw.r_cp.r_qf.bvm=bv.**42553238,d.d2k fp=e58955d3a8f3f3a1 And everything after the uk/ is the query string. That particular search brings back lots of links about query strings. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ __**_ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/**mailman/listinfo/tutorhttp://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Query String
On Tue, Feb 19, 2013 at 4:14 AM, Alan Gauld alan.ga...@btinternet.com wrote: https://www.google.co.uk/#hl=en Just to clarify, using a fragment (#) like that isn't a standard query. It's a JavaScript trick for manipulating browser history based on location.hash, so one can do AJAX page refreshes without breaking the back button. You can see the actual query URL ('.../search?hl=en') if you view the background GET (e.g. in the Firefox web console). urlparse.urlsplit parses 'hl=en' as the fragment in this case: urlparse.urlsplit('https://www.google.co.uk/#hl=en') SplitResult(scheme='https', netloc='www.google.co.uk', path='/', query='', fragment='hl=en') ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Query String
On 19/02/13 11:35, eryksun wrote: On Tue, Feb 19, 2013 at 4:14 AM, Alan Gauld alan.ga...@btinternet.com wrote: https://www.google.co.uk/#hl=en Just to clarify, using a fragment (#) like that isn't a standard query. Yes I noticed the anomaly but I chose that particular query for a reason :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Query String
Hi All, I thank you all, for all the responses. teaching us to learn Python. Here i request, can you tell me what is Query String with some examples? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor