Apr 7 | 8:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Refael O. | has entered the room |
Mark M. |
hello, Refael
|
Mark M. |
how can I help you today?
|
Refael O. |
Hi Mark !
|
Apr 7 | 9:00 AM |
Refael O. |
first of all I would like to say how much I love your book! it's amazing and it's one of the best purchases I made this year !
|
Mark M. |
thanks for the kind words!
|
Refael O. |
I came here because I have a problem and I kinda looked everywhere we no solution
|
Refael O. |
I have an app that is working just fine for a while now, and I'm using Volley library to get and post data to my server using REST API
|
Mark M. |
OK
|
Mark M. |
I have not used Volley personally, but I still may be able to help
|
Mark M. |
what is your issue?
|
Refael O. |
View paste
|
Refael O. |
but I still need to pass the headers somehow..
|
Mark M. |
are your server-side logs showing anything useful?
|
Refael O. |
up until now I used to pass them Overriding the getHeaders(); method
|
Apr 7 | 9:05 AM |
Refael O. |
what do you mean "useful"? my server side guy is sitting next to me
|
Mark M. |
something that tells you what the server did not like about the request that returned a 400
|
Refael O. |
View paste
|
Mark M. |
I was hoping that your server would indicate what specifically it did not like about the headers that you were sending
|
Mark M. |
a 400 suggests that the SSL handshaking went OK
|
Mark M. |
so the fact that this is now an https:// URL versus an http:// URL, in theory, should have no impact
|
Mark M. |
rather than fumbling in the dark, trying to guess what the server doesn't like about your headers, it would be useful if the server would *tell* you what it doesn't like about your headers
|
Mark M. |
since you control the server
|
Mark M. |
in cases where you don't control the server, then you're stuck with the "fumbling in the dark" bit
|
Apr 7 | 9:10 AM |
Refael O. |
hmm, my server side is currently trying to answer that for me..
|
Refael O. |
View paste
|
Mark M. |
I prefer libraries with actual documentation, support, and packaging, all of which Volley lacks
|
Mark M. |
if I wanted an all-in-one library like Volley, I'd probably go with Ion
|
Mark M. |
I have also used Retrofit for Web service accesses
|
Mark M. |
and there are tons of image-processing libraries with built-in HTTP stacks (Picasso, Universal Image Loader, etc.)
|
Mark M. |
now, some of them may have limitations that would impact you -- for example, I have no idea which of those allow you to customize HTTP headers, as I have not had to deal with that
|
Refael O. |
View paste
|
Apr 7 | 9:15 AM |
Refael O. |
so i came here to see if I can avoid that with your help
|
Apr 7 | 9:15 AM |
Mark M. |
well, I cannot tell you how to package headers in Volley
|
Refael O. |
ok, so my server guy checked, and I am sending the exact headers required
|
Mark M. |
I fail to see how a change from HTTP to HTTPS would affect it
|
Mark M. |
that would suggest that the issue may be more on the server itself, failing to interpret the headers for some reason
|
Refael O. |
View paste
|
Mark M. |
then that would suggest that there is some difference, server-side, between the testing server and the other server (the one using HTTPS)
|
Mark M. |
again, if the server shows that the headers are coming over properly, it's unlikely that you can somehow improve upon what is already working :-)
|
Refael O. |
View paste
|
Refael O. |
thanks a lot for your help Mark, this Office Hours is so useful !!
|
Mark M. |
I am glad that I was able to be of some help
|
Apr 7 | 9:40 AM |
Refael O. | has left the room |
Apr 7 | 9:55 AM |
Refael O. | has entered the room |
Refael O. |
Hi Mark
|
Refael O. |
me again =]
|
Mark M. |
hi!
|
Mark M. |
the chat is nearly over -- do you have a quick question?
|
Refael O. |
View paste
|
Refael O. | |
Apr 7 | 10:00 AM |
Refael O. |
have a good day ;]
|
Apr 7 | 10:00 AM |
Mark M. |
OK, glad to hear that you got it working!
|
Refael O. | has left the room |
Mark M. | turned off guest access |