Prev: Open Handle in one Process and Close in another?
Next: Automatic updates running even when turned off
From: Anurag on 26 Feb 2010 12:31 Hi, I am doing a webautomation and posting data to a site. I have seen through Http analyzer that any browser send two request for posting data on that site. 1.Browser send data with content type application/x-www-form- urlencoded and site return with response "--ok--" 2. Browser send data with content type "multipart/form-data; boundary", where boundary is defined by server (e.g.boundary=-------------------------------some 12 digit number). If somebody is aware of multipart/form-data then please tell me how I can get this boundary. I have seen server response at first stage, it doesn't show boundary value anywhere, may be I am missing some location. Without this boundary server is not responding properly. Thanks in Advance, Anurag
From: David Schwartz on 1 Mar 2010 02:49 On Feb 26, 9:31 am, Anurag <anurag321...(a)gmail.com> wrote: > If somebody is aware of multipart/form-data then please tell me how I > can get this boundary. I have seen server response at first stage, it > doesn't show boundary value anywhere, may be I am missing some > location. You can use any boundary you want, so long as it doesn't appear in the data. > Without this boundary server is not responding properly. Follow the HTTP specification. DS
From: Anurag on 1 Mar 2010 11:00
On Mar 1, 12:49 pm, David Schwartz <dav...(a)webmaster.com> wrote: > On Feb 26, 9:31 am, Anurag <anurag321...(a)gmail.com> wrote: > > > If somebody is aware of multipart/form-data then please tell me how I > > can get this boundary. I have seen server response at first stage, it > > doesn't show boundary value anywhere, may be I am missing some > > location. > > You can use any boundary you want, so long as it doesn't appear in the > data. > > > Without this boundary server is not responding properly. > > Follow the HTTP specification. > > DS Thanks Guys, now problem is solved. |