[Typo3-doc] Backend Programming full import into the wiki

Sylvain Viart sylvain at ledragon.net
Tue Sep 7 06:52:18 CEST 2004


Hi,

Sebastian Kurfuerst wrote:

> I have looked at POST, and the problem I still need to solve is how to 
> encode the special characters. DO you have any ideas on this topic? The 
> other things shouldn't be a problem.

Yes see bellow. :-)

If you need more help ask again. :-)

> -- snip --
> POST /index.php?title=User:Skurfuerst/test&action=submit HTTP/1.1
> Host: wiki.typo3.org
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) 
> Gecko/20040803 Firefox/0.9.3
> Accept: 
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
> 
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: 
> http://wiki.typo3.org/index.php?title=User:Skurfuerst/test&action=edit
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 124
> 
> wpTextbox1=ghfgfg+%5Btest%22%5D+%5B%5BABC%5B+%C3%84%C3%96PI&wpSummary=&wpSave=Save+page&wpSection=&wpEdittime=20040906121355 

This parameter is url encoded, with the php function urlencode(), for 
example.

The idea is to convert space into + and some character into the hex code:

[ = %5b
] = %5d

...etc.

Don't code it your self, it's already written 1000 times around the Net. ;-)

There is a module for php for doing POST which use the CURL library.
wget do post too.

-- 
Cordialement,
Sylvain.
France




More information about the TYPO3-project-documentation mailing list