Getting SprintPCS Vision pictures
[1/5] from: greggirwin::mindspring::com at: 6-Sep-2002 14:00
OK, so the whole PCS Vision thing is relatively new, but you guys are way
ahead of the curve, so I'll ask anyway.
Does anyone know how to get pictures sent from a SprintPCS Vision phone via
REBOL?
Here's the lowdown, which may be something standard you all know how to do,
but I'm not a web guy, so I don't.
What happens is that you get an email containing a link like this:
http://pictures.sprintpcs.com/share.jsp?invite=YELr4HJj25aqOhDo8kPa
Now, that page is a jsp, and the link to the actual picture on the page
points to something like this:
<img
src="http://pictures.sprintpcs.com:80/i/8844930_468.jpg;jsessionid=baa_ODq8w
3AnoD?machineid=1&border=2,255,255,255,1,0,0,0,0" !width="480" !height="360"
alt="" border="0">
At least that's what I think the relevant part is. So, is it possible to get
at the picture with something like that? If I try to just READ it, I get
Server response: HTTP/1.1 500 Internal Server Error
, which may be an issue
with an invalid session ID or something I suppose, but since this isn't my
area, I really don't know.
Any thoughts or ideas would be welcome.
Thanks!
--Gregg
[2/5] from: g:santilli:tiscalinet:it at: 7-Sep-2002 1:26
Hi Gregg,
On Friday, September 6, 2002, 10:00:36 PM, you wrote:
GI> At least that's what I think the relevant part is. So, is it possible to get
GI> at the picture with something like that?
I was able to, by simply escaping that ";" to %3B. If you use
TO-URL on the string this should not be needed... The only needed
parameter is the session id, machineid and border are not needed
(it worked for me without them).
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[3/5] from: gchiu:compkarori at: 7-Sep-2002 12:25
Hi Gregg,
I tried this...
test: read/binary to-url
http://pictures.sprintpcs.com:80/i/8844930_468.jpg;jsessionid=baaarmm6XXgeEH?machineid=2&border=2
,255,255,255,1,0,0,0,0
after having first logged on using my browser.
test2: load test
view/new layout [ image test2 ]
and that worked fine.
If you want to get it from the Rebol console only, then
I'm guessing you have to send the session cookie back to
them. They send down two cookies.
HTH
--
Graham Chiu
[4/5] from: cybarite:sympatico:ca at: 6-Sep-2002 17:38
Re: Getting SprintPCS Vision pictures
Greg,
The problem seems to be that REBOL does not understand that the values form part of the
URL for Sprinting.
If you surround the url with quotes then force it back to a url you can retrieve your
picture.
url: "http://pictures.sprintpcs.com:80/i/8844930_468.jpg;jsessionid=aaa-EtKM86LNWl?machineid=2&border=2,255,255,255,1,0,0,
0,0"
img: load to-url url
view layout [image img]
which I guess you could make into:
view layout [image load to-url "http://pictures.sprintpcs.com:80/i/8844930_468.jpg;jsessionid=aaa-EtKM86LNWl?machineid=2&border=2,255,255,255,1,0,0,0,0"]
[5/5] from: greggirwin:mindspring at: 7-Sep-2002 16:08
Thanks to all! I was hoping it was some simple "web" thing I just didn't
know to look for.
--Gregg