use any browser sniffer (e.g. Live HTTPHeaders/IE HTTP watch basic ) or any proxy (e.g. fiddler or even jmeter http proxy) and all the urls that the browser accesses will be recorded. You cant modify the mime-type its sent by the server and in any case it is not what you want to do. i merely mention it to indicate the behavior of the browser
>I assume by getting the bytes of PDF, we cannot state that Some_File.pdf is sent to client side from the server. Am I correct? Im not sure what you mean by this. The browser is making a request and getting a response (code, content-length , other headers and a stream of bytes). What you can verify in Jmeter is that you are getting the same headers (which would include the file name, the content-length, the content-type) and that you actually get the bytes that form the PDF file. So if all this works you are getting a PDF file. What you cannot verify(Directly) in JMeter is the contents within the PDF file >I tried the suggestion by inserting "Save response to file" after the HTTP >request was made. Specified a local file path, but I got a garbage file and >not a pdf file. Assuming you did the save response to a file on the correct HTTP Request (i.e. the one that generates/downloads the PDF file) , what makes you say its a garbage file - what does it have? is it a binary? did you name it as whatever.pdf and attempt to open it or what? You need to know the requests your browser is making and replicate that in JMeter.. On Thu, Oct 15, 2009 at 3:46 PM, vishwesh_k <[email protected]> wrote: > > Thanks for your response! > > > Deepak Shetty wrote: > > > >> The PDF is still available as a URL to which the browser does make a > HTTP > > request. > > > > The Application hides the URL/address bar/right click options to view the > source of the file. > > > Deepak Shetty wrote: > > > > The mime type determines what the browser does with the file (e.g. > > prompting a different application to run), > > > > How do i set the mime type to open the PDF? The parameters (t,o,e,c) I see > in the in the HTTP Request, Do I have to do change those values? > > > Deepak Shetty wrote: > > > > but an HTTP request is still > > made...if you ask Jmeter to make the same request it will get the bytes > > that > > form the PDF. > > > I assume by getting the bytes of PDF, we cannot state that Some_File.pdf is > sent to client side from the server. Am I correct? > > I tried the suggestion by inserting "Save response to file" after the HTTP > request was made. Specified a local file path, but I got a garbage file and > not a pdf file. > > Bottom line: I would want to OPEN or SAVE the pdf file. Could you please > throw some light on it? Thank you very much! > > > -- > View this message in context: > http://www.nabble.com/Handling-File-Download-Window-tp25916352p25917268.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

