can i get the http headers from the server with this module?
if i'm expecting a bitmap (httpjob.getbitmap) and don't get it - eg, i get some html instead - i'm getting:
java.lang.RuntimeException: Object should first be initialized (Bitmap).
normally i would put: bm.Initialize3( Job.GetBitmap ), so i'm guessing the error is being thrown within the getbitmap sub.
i was going to try "try...catch", but i come from C so it isn't natural to me, and i'm not sure what it is i would be trapping for (the io was successful; it just sent the "wrong" string of bytes.)
then i thought, if i saw the server's "content-type" header, i would see that it wasn't an image, and i could skip the job or change it to deal with text.
i was helpfully advised on httpjob.getrequest.setheader on the way out. now i'm looking for httpjob.getrequest.getheader or httpjob.getrequest.getcontenttype on the way back. any suggestions there? thanks
-go
if i'm expecting a bitmap (httpjob.getbitmap) and don't get it - eg, i get some html instead - i'm getting:
java.lang.RuntimeException: Object should first be initialized (Bitmap).
normally i would put: bm.Initialize3( Job.GetBitmap ), so i'm guessing the error is being thrown within the getbitmap sub.
i was going to try "try...catch", but i come from C so it isn't natural to me, and i'm not sure what it is i would be trapping for (the io was successful; it just sent the "wrong" string of bytes.)
then i thought, if i saw the server's "content-type" header, i would see that it wasn't an image, and i could skip the job or change it to deal with text.
i was helpfully advised on httpjob.getrequest.setheader on the way out. now i'm looking for httpjob.getrequest.getheader or httpjob.getrequest.getcontenttype on the way back. any suggestions there? thanks
-go