[#3907] Obtaining mode information on an IO object — Jos Backus <jos@...>

The attached patch implements IO#mode. This method returns the mode the IO

17 messages 2004/12/06
[#3909] Re: [patch] Obtaining mode information on an IO object — nobu.nokada@... 2004/12/07

Hi,

[#3910] Re: [patch] Obtaining mode information on an IO object — Jos Backus <jos@...> 2004/12/07

On Tue, Dec 07, 2004 at 09:25:13AM +0900, nobu.nokada@softhome.net wrote:

[#3925] Re: [patch] Obtaining mode information on an IO object — James Britt <ruby@...> 2004/12/09

Jos Backus wrote:

[#4009] cgi.rb -- more GET/POST stuff — mde@...26.com

First of all, I think it would be great, as Eustaquio suggests, to

17 messages 2004/12/23
[#4016] Re: [PATCH] cgi.rb -- more GET/POST stuff — Francis Hwang <sera@...> 2004/12/24

GETs and POSTs are defined to be fairly different actions. I'd read

[#4027] Allowing custom number literal suffixes? — Florian Gro<florgro@...>

Moin!

35 messages 2004/12/27
[#4070] Re: Allowing custom number literal suffixes? — nobu.nokada@... 2005/01/02

Hi,

[#4072] Re: Allowing custom number literal suffixes? — Mathieu Bouchard <matju@...> 2005/01/02

[#4079] Re: Allowing custom number literal suffixes? — Florian Gro<florgro@...> 2005/01/03

Mathieu Bouchard wrote:

[#4081] Re: Allowing custom number literal suffixes? — Mathieu Bouchard <matju@...> 2005/01/03

[#4082] Re: Allowing custom number literal suffixes? — Florian Gro<florgro@...> 2005/01/03

Mathieu Bouchard wrote:

[#4084] Re: Allowing custom number literal suffixes? — Brent Roman <brent@...> 2005/01/04

I'm not sure I would advocate making Ruby's grammar even more

[#4086] Re: Allowing custom number literal suffixes? — Mathieu Bouchard <matju@...> 2005/01/04

[#4033] Garbage collection trouble — Christian Neukirchen <chneukirchen@...>

Hello,

13 messages 2004/12/27

Re: [PATCH] cgi.rb -- more GET/POST stuff

From: "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...>
Date: 2004-12-27 10:29:36 UTC
List: ruby-core #4029
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

| Looks like somehow I gave the impression that I think cgi.rb
| should add features simply because PHP has them. Let me try to
| be a bit clearer about why I was mentioning features in both
| PHP and ASP. These are probably the most widely used languages
| designed specifically for Web-based programming. So it would
| seem to me to make pretty good sense to mention the features
| in those languages which are specific to HTTP requests when
| discussing the functionality of Ruby's default Web-based
| programming library.

Yeah, that's what I did, also. :-)

| Actually the query_string var is populated correctly with data
| on a POST -- Originally I was parsing out the variables from
| there, before I decided to have a look at cgi.rb. That's what
| makes it sillier: the data is there -- so why leave those params
| out of the default hash simply because the method was changed
| to POST?  It's like Nigel Tuffnel with that Les Paul guitar
| in the Spinal Tap movie -- "Don't even look at it!!!" Would
| you reasonably expect the cookies to vanish because you used
| changed the request method? So why should query string data?

I originally asked for separated hashes because for ex, if I have a form
with two input fields called "id" and "password", I'd like to make sure
that they came from a POST (from a FORM), and not from a GET, like:

http://localhost/mypage?id=john&password=doe

It's not impossible to create a automatic word list POSTing script, but
it's easier to make it using the GET way. So a guy could make a huge loop n
your URL till it get a valid return (or you block it's IP or something like
that). So you will not allow the guy to do:

http://localhost/mypage?id=john&password=mary
http://localhost/mypage?id=john&password=password
http://localhost/mypage?id=john&password=catsname

bla bla bla

Using the values from a different POST hash will make sure that it was
POSTed values there. As I said, not impossible to fake, but ...

| I need to stop here, as it's already getting late, and I figure
| I've likely bored/annoyed everyone enough with all this. I would
| love to hear more thoughts on this.

Nah, we're all talking about this, and talking is good. :-)

Best regards,

- ----------------------------
Eust痃uio "TaQ" Rangel
eustaquiorangel@yahoo.com
http://beam.to/taq
Usu疵io GNU/Linux no. 224050
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBz+R8b6UiZnhJiLsRAv/tAJ9WQYghd/UD4aGM47PBSgqnskrPrwCffstm
d21NVVh9091lzZ5sSJHVZHo=
=/54L
-----END PGP SIGNATURE-----

In This Thread