Fabiano, If you want write in Portuguese, send a email in off. :D
Well, you want know why do you need put a header in makeRequest. The Orkut don't modify the header, if you use the ***. When you use the POST method you need notice this to the server, makeRequest is a simple http proxy. Fallow code work in Orkut. var _myAttr = {nome: 'joao'}; var _lot = gadgets.io.encodeValues(_myAttr); var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON; params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST; params[gadgets.io.RequestParameters.POST_DATA] = _lot; params[gadgets.io.RequestParameters.HEADERS] = {"Cache-Control": "no-cache","Content-length": _lot.length}; gadgets.io.makeRequest(yourUrl, yourCallback, params); Regards 2008/8/22 Fabiano Bondia <[EMAIL PROTECTED]>: > Fernando, td ok? > > Obrigado pela resposta. > > Como eu faço para colocar o content-length no request? É estranho que olhado > pelo firebug, o makeRequest gera um Content-Length no header da > requisição... e mesmo assim o erro ocorre. > > > > > > > 2008/8/21 Fernando chucre <[EMAIL PROTECTED]> >> >> Fabiano, >> >> you need put the Content-Length header in your request. >> >> Fernando Chucre/Brasil >> >> 2008/8/21 Fabiano Bondia <[EMAIL PROTECTED]>: >> > My app make some requests for a third part server, running .net on IIS >> > 6. >> > >> > Sometimes i got a 411 error, which means the request post does not have >> > the >> > required header Content-Length. >> > >> > It not happens on sandbox, only in prod. >> > >> > Anybody else have this kind of problem? >> > >> > >> > Fabiano >> > http://www.frazz.com.br >> > >> > >> > >> > > >> > >> >> >> >> -- >> Fernando Chucre - LPIC-1 >> http://www.horizontesdigitais.com >> >> > > > > > -- Fernando Chucre - LPIC-1 http://www.horizontesdigitais.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---