Re: [Zope] sending variables/parameters via hyperlink

2001-01-28 Thread Chris Withers

Dieter Maurer wrote:
 
 This should work *IF* the URL does not contain funny characters.
 
 Note that many characters are not allowed in URL's and
 especially "value" above must not contain blanks (as per HTML 4.x
 and CGI). Such values must be quoted with "url_quote_plus".

Why is it so bad if values contain spaces?

This is the same area as why variables supplied without a value, eg:
http://server/method?paramater

...don't end up in the namespace, eg, from the above example:

REQUEST['paramater']=None

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] sending variables/parameters via hyperlink

2001-01-28 Thread Dieter Maurer

Chris Withers writes:
  Dieter Maurer wrote:
   
   This should work *IF* the URL does not contain funny characters.
   
   Note that many characters are not allowed in URL's and
   especially "value" above must not contain blanks (as per HTML 4.x
   and CGI). Such values must be quoted with "url_quote_plus".
  
  Why is it so bad if values contain spaces?
I think, it was because in early days most CGI scripts
were shell scripts. It is quite hard to pass values
into shell scripts that contain blanks.
Unix shells are very keen to reparse them and break them
up at whitespace into a sequence of words.

Anyway, when you look at the current HTTP (4.01) specification,
you can read that space has to be replaced by '+'.
To be precise, this is a requirement for the
"application/x-www-form-urlencoded" content type.

  This is the same area as why variables supplied without a value, eg:
  http://server/method?paramater
  
  don't end up in the namespace, eg, from the above example:
When I looked at "ZPublisher.cgi", I had the impression
that it treats such constructs as "values" rather than "names"
and associate all of them with 'None'.
If I am right, then ZPublisher does not expose such items.

I did not check the CGI spec to learn what is the correct
behaviour.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] sending variables/parameters via hyperlink

2001-01-26 Thread Horatio B. Bogbindero


hello people, i am extremely new to zope. from the time i have sent 
this email i would have been 4 hours old as a zope newbie. i would 
just like to congratulate the people responsible for zope. like i said
before, it is a content managers dream come true.

anyway, i seem to have a thing i cannot do.

we can pass variables/parameters via post in a webform. however, i would
like to pass as variable/parameter via a hyperlink. in regular html i
would be something like 

a href="newpage.htm?variablename=value"Sent value to newpage.htm/a

i get this error:

error start-o
Error response

Error code 400. 

Message: Bad Request. 
---error endo
 
is this expected behavior? if so what should i do so emulate something
like this method of paramter/variable passing using anchors? 

thanks.

--
William Emmanuel S. Yu
Ateneo Cervini-Eliazo Networks (ACENT)
email  :  [EMAIL PROTECTED]
web:  http://cersa.admu.edu.ph/
phone  :  63(2)4266001-5925/5904
 
Democracy means simply the bludgeoning of the people by the people for
the people.
-- Oscar Wilde
 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )