it appears that you are making some kind of browser based bot, yes?

first, the majority of those headers, you aren't going to be able to strip
out because they are produced by the browser, second Prototype doesn't do
cross-domain communication natively

what you probably will have to do is make a server side proxy using cURL or
some other technology (if you use a MS based server that is) and thus would
allow you to configure (some) of those headers



On Fri, Apr 18, 2008 at 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 <http://thatSite.com/homeContent-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
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to