Dealing with HTTPS in Java can be quite exasperating at times. The
JVM that is running must be able to verify the chain of trust for the
certificate of the URL you are requesting via its internal certstore,
or it must have that certificate in its local keystore. If you don't
know what this means, you can try updating your JVM to the very latest
in hopes that it will pick up a certstore that will have the root
certificate you need.
To go through your questions:
1b)
The difference between HTTP and HTTPS you are seeing -- when you
request "
http://data.edmonton.ca/download/uzpc-8bnm/application%2Foctet-stream"
it is simply redirecting you to
"
https://data.edmonton.ca/download/uzpc-8bnm/application%2Foctet-stream"
but the HTTPS handshake didn't happen so the stream is unreadable.
2)
This is not likely a difference of OneBusAway versions, but a
difference of Java version. Eclipse will often run a different JVM,
even between workspaces. Verify everything is the same between 1) and
2), and then verify you are able to read HTTPS correctly from
data.edmonton.ca.
3)
I'm not sure why you took the approach. Apache httpd, nginx, and
pound are popular open source applications (to name a few) that will
decode/proxy HTTPS for you if you can't figure it out in Java. No
need to write this yourself and risk getting it wrong.
Good luck!
Sheldon
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
onebusaway-devel...@googlegroups.com.
> To post to this group, send email to
onebusaway...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/onebusaway-developers.
> For more options, visit
https://groups.google.com/d/optout.