Adam,
your question is definitely a valid one, so don’t worry about asking!
Here is a transcript of a quick test I just ran within the spray repository:
[info] Loading global plugins from ...
[info] Loading project definition from ...
[info] Set current project to root (in build file:/...)
root > p spray-can
[info] Set current project to spray-can (in build file:/...)
spray-can > console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :paste
// Entering paste mode (ctrl-D to finish)
import akka.pattern.ask
import spray.http._
import scala.concurrent.duration._
implicit val timeout: akka.util.Timeout = 5.seconds
implicit val system = akka.actor.ActorSystem()
import system.dispatcher
akka.io.IO(spray.can.Http).ask(HttpRequest(HttpMethods.HEAD,Uri("
http://www.google.com/"))).onComplete(println)
// Exiting paste mode, now interpreting.
import akka.pattern.ask
import spray.http._
import scala.concurrent.duration._
timeout: akka.util.Timeout = Timeout(5 seconds)
system: akka.actor.ActorSystem = akka://default
import system.dispatcher
scala> Success(HttpResponse(200 OK,Empty,List(Transfer-Encoding: chunked, Alternate-Protocol: 80:quic, X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, Server: gws, P3P: CP="This is not a P3P policy! See
http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info.", Set-Cookie: NID=67=gmsD7sp4SHfxAdSstWd43wJePu2VFfrB370ZyRFHBVeJkre-gQHaufJbOwA92yiGbryopU5tolmQvd-1pseRz_Y3TqyjA-EUcDl_qFRyNp87ANOl5kPENQW9J; Expires=Sat, 04 Oct 2014 07:47:49 GMT; Path=/; HttpOnly; domain=.
google.com, Set-Cookie: PREF=ID=b33313a2110c825b:FF=0:TM=139597669:LM=1396597669:S=bxuhnvpZTbW8J7; Expires=Sun, 03 Apr 2016 07:47:49 GMT; Path=/; domain=.
google.com, Content-Type: text/html; charset=ISO-8859-1, Cache-Control: private, max-age=0, Expires: -1, Date: Fri, 04 Apr 2014 07:47:49 GMT),HTTP/1.1))
scala>
So, as you can see, spray delivers the `Set-Cookie` headers from
google.com as expected.
> I'm not seeing any warnings, and I think I have the spray log level set to “ALL"
There is no `ALL` log config.
You should set `akka.loglevel` to `DEBUG` (and configure your logging backend (e.g. logback) to also show DEBUG level messages).
Cheers,
Mathias
---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "
spray.io User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
spray-user+...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/spray-user.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/spray-user/995611cf-1273-4c9f-b36f-7786289f2ac6%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.