socket error - probably my fault.

26 views
Skip to first unread message

Pruitt, Byron S

unread,
Mar 2, 2009, 5:53:05 PM3/2/09
to as3-htt...@googlegroups.com

Gabe,

 

I am finally starting to play around with the HttpClient component.  Hope you don’t mind some very basic questions.

 

I tried baby steps with a GET.  The request appears to be work ok.  I receive the expected response, but I get this action script error.

 

ReferenceError: Error #1065: Variable com.hurlant.crypto.tls::TLSSocket is not defined.

            at org.httpclient::HttpSocket/onResponseComplete()[/Users/gabe/Projects/as3httpclient/src/org/httpclient/HttpSocket.as:264]

            at org.httpclient.io::HttpResponseBuffer/writeBytes()[/Users/gabe/Projects/as3httpclient/src/org/httpclient/io/HttpResponseBuffer.as:119]

            at org.httpclient::HttpSocket/onSocketData()[/Users/gabe/Projects/as3httpclient/src/org/httpclient/HttpSocket.as:251]

 

 

 

Also, can keep the connection open?  Here are the headers…

 

The request headers

 

GET /dls/repository/resource/favorites?h=dXNlcjE6eHh4&user=user1 HTTP/1.1

Host: localhost:9080

Connection: close

and the response headers are:

 

HTTP/1.1 200 OK

Host: localhost:9080

Connection: Close

Server: Day-Servlet-Engine/4.1.3

Content-Type: application/xml

Date: Mon, 02 Mar 2009 22:46:06 GMT

Transfer-Encoding: chunked

gabe

unread,
Mar 2, 2009, 6:42:19 PM3/2/09
to AS3 HttpClient
My immediate guess is that you need to include the as3crypto.swc if
you are doing https. TLSSocket is in the as3crypto library.

On Mar 2, 2:53 pm, "Pruitt, Byron S" <steve.pru...@hp.com> wrote:
> Gabe,
>
> I am finally starting to play around with the HttpClient component.  Hope you don't mind some very basic questions.
>
> I tried baby steps with a GET.  The request appears to be work ok.  I receive the expected response, but I get this action script error.
>
> ReferenceError: Error #1065: Variable com.hurlant.crypto.tls::TLSSocket is not defined.
>             at org.httpclient::HttpSocket/onResponseComplete()[/Users/gabe/Projects/as3httpclient/src/org/httpclient/HttpSocket.as:264]
>             at org.httpclient.io::HttpResponseBuffer/writeBytes()[/Users/gabe/Projects/as3httpclient/src/org/httpclient/io/HttpResponseBuffer.as:119]
>             at org.httpclient::HttpSocket/onSocketData()[/Users/gabe/Projects/as3httpclient/src/org/httpclient/HttpSocket.as:251]
>
> Also, can keep the connection open?  Here are the headers...

SteveP

unread,
Mar 3, 2009, 9:42:48 AM3/3/09
to AS3 HttpClient
I am not using https, or at least I am not knowningly using it. Take
a look at my request at the bottom of the note. The uri I specified
for the request is http://localhost:9080/dls/resource/resource/favorites?h=dXNlcjE6eHh4&user=user1.
The code snippet to make the request is

var uri : URI = new URI(getApplicationUrl() + resource +
qParms.getRequestString());
Did I not initialize things correctly?


-S

On Mar 2, 6:42 pm, gabe <gabri...@gmail.com> wrote:
> My immediate guess is that you need to include the as3crypto.swc if
> you are doing https. TLSSocket is in the as3crypto library.
>
> On Mar 2, 2:53 pm, "Pruitt, Byron S" <steve.pru...@hp.com> wrote:
>
>
>
> > Gabe,
>
> > I am finally starting to play around with the HttpClient component.  Hope you don't mind some very basic questions.
>
> > I tried baby steps with a GET.  The request appears to be work ok.  I receive the expected response, but I get this action script error.
>
> > ReferenceError: Error #1065: Variable com.hurlant.crypto.tls::TLSSocket is not defined.
> >             at org.httpclient::HttpSocket/onResponseComplete()[/Users/gabe/Projects/as3htt­pclient/src/org/httpclient/HttpSocket.as:264]
> >             at org.httpclient.io::HttpResponseBuffer/writeBytes()[/Users/gabe/Projects/as3­httpclient/src/org/httpclient/io/HttpResponseBuffer.as:119]
> >             at org.httpclient::HttpSocket/onSocketData()[/Users/gabe/Projects/as3httpclien­t/src/org/httpclient/HttpSocket.as:251]
>
> > Also, can keep the connection open?  Here are the headers...
>
> > The request headers
>
> > GET /dls/repository/resource/favorites?h=dXNlcjE6eHh4&user=user1 HTTP/1.1
> > Host: localhost:9080
> > Connection: close
> > and the response headers are:
>
> > HTTP/1.1 200 OK
> > Host: localhost:9080
> > Connection: Close
> > Server: Day-Servlet-Engine/4.1.3
> > Content-Type: application/xml
> > Date: Mon, 02 Mar 2009 22:46:06 GMT
> > Transfer-Encoding: chunked- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages