Lazarus
Programming => Packages and Libraries => Lazarus Extra Components => Topic started by: rodrigo on November 17, 2005, 12:48:27 pm
-
How communicate with page web and call it with parameters ? I use the package indy but when try return error: number 22 parameters invalids. Any Idea ?
Or in portuguese:
Como faço para chamar uma página da internet enviando parâmetros para ela e é claro retornando seu conteúdo seja "string" ou "tstring". Tentei utilizar o indy porém o que recebo de erro é erro 22 de parâmetro. Alguém tem alguma idéia ?
-
normally you pass parameters after a "?" like:
index.php?name=PNphpBB2&file=viewtopic&p=6787#6787
The split up in params depends on the package/components/clesses/functions you use.
-
I write it using TIdHTTP(name:IdHTTP) to send:
...
AIdMultiPart:=TIdMultiPartForm.Create;
AIdMultiPart.AddFormField('test','123');
AReturn:=IdHTTP.Post(AURL,AIdMultiPart);
...
Is It what I try compile and result in error.
What I do wrong ?
-
Look in the ID documentation on what idHTTP.Post expects as parameters.