For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2004 > QUERY_STRING









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author QUERY_STRING
Mike Ni

2004-03-26, 11:14 pm

Hey Everyone,

Do we know where I can get a clear definition
of "query_string"?

What are included by the "query_string"
returned by the apache web server?

Thanks! Mike

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Wc -Sx- Jones

2004-03-26, 11:14 pm

Mike Ni wrote:
> Hey Everyone,
>
> Do we know where I can get a clear definition
> of "query_string"?
>
> What are included by the "query_string"
> returned by the apache web server?



Everything after the ? is the query_string for a get
(POST is somewhat different.)

For example - See:
http://insecurity.org/cgi/cgi_refle...ngQuestioningMe

Not sure where I got that one - somewhere on the Internet...

--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _____
perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian
Mike Ni

2004-03-26, 11:14 pm


--- WC -Sx- Jones <sx@insecurity.org> wrote:

>
> Everything after the ? is the query_string for a get
> (POST is somewhat different.)
>
> For example - See:
>

http://insecurity.org/cgi/cgi_refle...ngQuestioningMe
>
> Not sure where I got that one - somewhere on the
> Internet...
>
>


Thanks for the response.
Is there any connection between "CONTENT_LENGTH" &
"query_string"?

Thanks!
MIke

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Wc -Sx- Jones

2004-03-26, 11:14 pm

Mike Ni wrote:

> Thanks for the response.
> Is there any connection between "CONTENT_LENGTH" &
> "query_string"?
>


No. Why do you ask?

--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _____
perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian
Mike Ni

2004-03-26, 11:14 pm


--- WC -Sx- Jones <sx@insecurity.org> wrote:
> Mike Ni wrote:
>
>
> No. Why do you ask?
>


I am not clear why we need CONTENT_LEGTH.
I thought the CONTENT_LENGTH is designed to tell
me how long the message is.

I better double check the definition.

Is there any place we can look up the definition
of these such as "CONTENT_LENGTH" & query_string.


From the example, I see the query_string. Yet, how
it is structured? Or I simply don't need to
worry about it.


Thanks! Mike

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Bob Showalter

2004-03-26, 11:14 pm

Mike Ni wrote:
> Is there any place we can look up the definition
> of these such as "CONTENT_LENGTH" & query_string.


For the environment variables:

http://hoohoo.ncsa.uiuc.edu/cgi/env.html

For the HTTP headers that these variables are derived from:

http://www.w3.org/Protocols/rfc2616/rfc2616.txt
Mike Ni

2004-03-26, 11:14 pm

f
> To sum it up:
>
> a) Try to find the information yourself, Google is a
> great tool and has the
> added benefit that you won't have to wait for an
> answer from the list...
> b) Ask specific questions about what you don't
> understand on the
> _appropriate_ mailing list.
>



Please let me know if you find anything really
document how query_string's structure from "google".

As a matter fact, I do think you will have a better
luck with yahoo for this spcifgic topic.

I google the web & apache site several times. Yet,
nothing really answer the question.

The question I am asking you, specifically is
"how the query_string is constructed".
Is this clear to you? Let me know spcifically which
part you don't unstand.


Thanks! Mike


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
James Edward Gray II

2004-03-26, 11:14 pm

On Mar 24, 2004, at 12:36 PM, Mike Ni wrote:

> The question I am asking you, specifically is
> "how the query_string is constructed".
> Is this clear to you? Let me know spcifically which
> part you don't unstand.


The part we don't understand is why you keep asking this Perl mailing
list a question that doesn't have anything to do with Perl. ;)

James

Mike Ni

2004-03-26, 11:14 pm


>
> The part we don't understand is why you keep asking
> this Perl mailing
> list a question that doesn't have anything to do
> with Perl. ;)
>
> James


Thanks for clearing up for me.

However, so far I learnd 2 things:

(1)
Instead of parsing the string, I can use
Apache::Request perl pre-built module.

(2)
The query_string is really a product of the client.

I am not a perl expert, but I do learn a lot from
these.


To me, such information could benefit many many perl
beginner including myself.

Have fun! Mike


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Wc -Sx- Jones

2004-03-26, 11:14 pm

James Edward Gray II wrote:
> The part we don't understand is why you keep asking this Perl mailing
> list a question that doesn't have anything to do with Perl. ;)


Especially since this is so well documented - it is almost
why the Internet (WWW) exists today.

First hit right off Google:
http://www.webopedia.com/TERM/Q/query_string.html


Now we can officially say this is a FAQ and can be
found searching these archives...

--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _____
perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian
Wc -Sx- Jones

2004-03-26, 11:14 pm

Mike Ni wrote:

> (2)
> The query_string is really a product of the client.



No.

The query string is a part of the CGI hand-shake between systems.

You can have a Query String between any systems which agree to CGI.

CGI is an Interface, the fact that it is doomiant on HTTP doesnt
change this...

--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _____
perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com