On Fri, Apr 18, 2008 at 8:01 PM, blechler <[EMAIL PROTECTED]> wrote: > > > > On Apr 18, 9:36 am, vermin <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm trying to make an application that periodical sending 'Post' > > requests to another server and handle the response. > > > > I used the 'Live HTTP Headers' plug-in to firefox to see which headers > > and parameters I needed for the response. > > > > POST /getResponse/ HTTP/1.1 > > Host: thatSite.com > > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv: > > 1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 > > 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: sv,en-us;q=0.7,en;q=0.3 > > Accept-Encoding: gzip,deflate > > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > > Keep-Alive: 300 > > Connection: keep-alive > > Content-Type: application/x-www-form-urlencoded > > Referer:http://thatSite.com/home > > Content-Length: 51 > > Cookie: site_eng=0effedd96ae13cdfda226fd46ec978fd; > > PHPSESSID=09mluoduvmmh1bvjlg0hri81m5 > > Pragma: no-cache > > Cache-Control: no-cache > > a=191&b=202&c=201&d=206 > > > > My question is, how do I add all these headers to my request. I tried > > to make an array containing all the headers and parameters but it > > doesn't work, no response at all nor failure. And I also want to > > remove all the standard headers that prototype uses so the request > > looks more real. > > > > Any help would be nice! > > > > Regards V > > AJAX requests can only be sent to the server upon which your page is > located. Requests to other servers will need to be relayed by some > server side scripting. > > > hi thanks for the email but i do not understand your email please can you be more specific about your requirement..
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---