How to verfiy the http compression

Hi, I'm using Sun ONE Web Server 6.1, and have configured it to compress the content on demand.
I received the following http response, but in both cases of turning on/off the compression on demand.
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Thu, 13 Jan 2005 09:36:29 GMT
Content-Type: text/html
Transfer-encoding: chunkedHow can I verify the compression work?
Will it show different result in case of turn on/off the compression?
TIA,
Matthew

Sorry about that. Because you pasted in an HTTP response, I assumed you already knew how to manually submit HTTP requests.
You can use telnet to submit HTTP requests, impersonating a web browser. Here's an example on a Solaris machine, mbelshe, where I have a Web Server instance running on port 2600:    elving@mbelshe:~> telnet mbelshe 2600
    Trying 10.5.80.146...
    Connected to mbelshe.
    Escape character is '^]'.
    GET / HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-Java-System-Web-Server/7.0
    Date: Mon, 17 Jan 2005 01:53:26 GMT
    Content-type: text/html
    Last-modified: Thu, 13 Jan 2005 21:13:53 GMT
    Content-length: 355
    Connection: close
    <html>...</html>
    Connection to mbelshe closed by foreign host.
    elving@mbelshe:~> The stuff in bold is the stuff I typed. I'll try that same HTTP request again, but this time indicate that I want a compressed response:    elving@mbelshe:~> telnet mbelshe 2600
    Trying 10.5.80.146...
    Connected to mbelshe.
    Escape character is '^]'.
    GET / HTTP/1.0
    Accept-encoding: gzip
    HTTP/1.1 200 OK
    Server: Sun-Java-System-Web-Server/7.0
    Date: Mon, 17 Jan 2005 01:53:27 GMT
    Content-type: text/html
    Last-modified: Thu, 13 Jan 2005 21:13:53 GMT
    Content-encoding: gzip
    Vary: accept-encoding
    Connection: close
    MP�N�0...����\�
    Connection to mbelshe closed by foreign host.
    elving@mbelshe:~> Note that when I ask for a compressed response, the server responds with a Content-encoding: gzip header and spews out gobbledygook instead of HTML.
There are other, prettier ways to get this sort of information. One such way is the LiveHTTPHeaders extension for Mozilla and Firefox. There's more information on that extension at http://livehttpheaders.mozdev.org/.

Similar Messages

  • How to transfer the http request from applet to servlet/jsp

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

  • How to change the HTTP Response as XML (Content Type "text\xml") ?

    Hi Friends ,
                     I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as  " OK" . In the connection test trace i have seen the Content Type as "text/html" but *  I need to get as "text\xml" .* 
                     I need to get response back as XML not plain text . 
            1  Any Configuration setting  do we need to do on Service (SICF )  ?
             2. Or any other place we need to modify to get the HTTP Response as XML not plain text
                  Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan
    Edited by: ranga rajan on Jan 2, 2008 2:07 PM

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • How to change the HTTP Response as XML (Content Type "text\xml")  When Post

    Hi Friends ,
    I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as " OK" . In the connection test trace i have seen the Content Type as "text/html" but * I need to get as XML format no Srting    ( Type "text\xml" . ) *
    I need to get response back as XML not plain text .
    1 Any Configuration setting do we need to do on Service (SICF ) ?
    2. Or any other place we need to modify to get the HTTP Response as XML not plain text
    Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • How to use the http binding example?

    Hi all,
    i want to test the http binding example, but i didn't find any documentation to this example. Therefore i need some answers to my questions
    1. How do i deploy the QuoteService to the engine (do i have to compile it in the JDBPEL Designer?)
    2. When i have deployed the HttpBindingExample, how do i use it (which input data to use in the Process Manager?)
    Thanks for replying
    Alli

    Hi Ali,
    The QuoteService is a simple JSP, so you should deploy it as a web application to your local OC4J server which hosts the BPEL server. The context root should be QuoteService as described in the wsdl: <http:operation location="/QuoteService/quotes.jsp" />, or more simply just put under the default application location with a folder named QuoteService.
    The following code in the BPEL process assigns a value to the input variable of the invoke which invokes the service:
    <assign name="assignQuoteRequest">
         <copy>
              <from expression="'ORCL'">
              </from>
              <to variable="quoteRequest" part="symbol"/>
         </copy>
    </assign>
    Hope this helps,
    ~ronen

  • How to use the HTTP Analyzer with the embedded OC4J server?

    JDeveloper version: Studio Edition Version: 10.1.3.0.3.3412
    I have a web application, which I run in the embedded OC4J server.
    I tried to use the HTTP analyzer to inspect http requests and responses, but I could not make the analyzer work.
    I tried to setup the HTTP analyzer by looking at the help entry, but I could not make it work.
    If the HTTP analyzer works for you in the embedded OC4J server, please write the steps on how to setup the analyzer.
    (Maybe I could not make the correct settings about port numbers?)
    Thanks in advance,
    Regards,
    Turgay Zengin

    I was able to use the HTTP Analyzer by changing the proxy setting directly in Internet Options. Check the browser/proxy settings set in JDeveloper preferences and copy them to the Connections tab of Internet Options. See if that works for you.

  • How to configure the Http sender adapter

    Now i have look through the sap lib about the http sender adapter
    and i know the url is
    http://hostname:port/path?namespace=<...>
    &interface=<...>&service=<...>&cmd=T&loaderXML=< message object >&end=yes
    My questions are:
    1)the path in the URL is "/sap/xi/adapter_plain", if not, what is it?
    2)the message payload is right?
    any reply is appreciated
    Thank you very much

    Hi Leo,
    For a HHTP Scenario:
    DESIGN:
    1. Create DataTypes for source and Destinations. Create elements for all the text fields of your HTTP Client so that they can all be mapped into the destination file
    2. Create MessageTypes for the two datatypes.
    3. Create Message Interfaces. The One for HTTP is the sender, Asynchronous ( as no response is expected) and one for File is receiver, asynchronous.
    4. Do the mapping. It will be mostly a one to one mapping of the fields.
    5. Create the Interface Mapping.
    Configuration:
    1. Import your Business System under your Configuration Scenario.
    2. Create 2 communication channels. One for Http as a sender and one for your receiver say IDoc.
    Check these links for the configuration part.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    3. Do the Receiver Agreement for Idoc. HTTP doesn’t need a sender agreement.
    4. DO the Receiver Determination and Interface Determination.
    Weblog which talk about the same scenario:-
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is
    aimed at explaining the sync-async bridge.. Sriram has taken http-to-file scenario as the example
    (use case) and explained it...
    Check this SDN tv demo, it has detail of HTTP adapter setup.
    https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107
    Refer to this link for adapter settings.
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    You should also have a HTTP client to send message to XI. In the connecting parameters to XI u have to use the URL in the pattern mentioned . U have to give all the configuration details in the URL.
    If you give me your mail id or if you can mail me at [email protected], i can send you a HTTP CLIENT.....In which you need to view the source code and change the username and password to send message to XI.
    Regards,
    Abhy

  • How to use the http sender adapter

    Hi,
    I'm trying to use the http sender adapter but not getting the result.
    1)  I've created the commnunication channel in Integration Directory.
    2)  I have my url:
    http://<server>:56000/sap/xi/adapter_plain?service=BS&namespace=urn%3Acompany%3Apoc&interface=interface
    3)  When i copy that url in a browser i get a login prompt. When i log in i get a message that navigation is cancelled.
    What steps do i need to do to use this url to send my xml message to the adapter engine. Do i need a special system user for this? Any other tools required? (i have httpclient but using that doesnt send messages to the adapter_plain; i think)
    I feel i'm just missing one little thing, but what is it.
    kr
    Robert

    Hello Team,
    I added the user name & pwd to query string & trying to access from IE and still getting blank page.
    Is this what is expected or there is something wrong in URL. I am able to send the XML from HTTP Test tool.
    My URL is :
    http://abc:50000/sap/xi/adapter_plain?namespace=urn:xyz.com:A_To_ERP_Payment_balance_Request&interface=SI_A_CHK_balance_OUT&service=BC_XX_XXX&sap-user=myuser&sap-password=mypassword&sap-client=001&sap-language=EN
    Please advice.

  • How to set the HTTP headers in HTTP Binding to call RESTful service

    I'm calling a RESTful service from the SOA Composite through a BPEL process. The RESTful service need few values to be set in the HTTP header to authorize the request. I tried several different options like setting the headers in the invoke service etc., but in vain. Apparently, the web service call fails for not having header information.
    I have burnt several days on this. Can somebody help me to get through this please?
    I'm using SOA composite 11.1.1.4 on WLS 10.3.4.
    Thanks in advance.
    The exception -
    <Oct 19, 2011 1:01:59 PM CDT> <Error> <oracle.webservices.service> <OWS-04086> <javax.xml.rpc.soap.SOAPFaultException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://txganguat.txd
    ps.state.tx.us/TxGang
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.generateSoapFaultException(WebServiceEntryBindingComponent.java:1053)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:890)
    at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

    any updates on this? Running into the same issue!
    Thanks

  • IDOC - XI - HTTP/MAIL (How to get the http response and send an email?)

    Hi David!
    If you are able to send any Http message in reference to message from XI (eg. with Idoc number or msg-id) there is no problem to process it in your scenario (even if comunication is asynchronous).
    Regards,
    Radek

    You need a 2:1 mapping. source interfaces are Idoc and Http response, target interface is the mail.
    As you can do his only for abstract interfaces, you have to create an abstract message interface based on the IDoc structure.
    For the http call you need abstract async message interfaces representing request and response which you can use for the mapping and for the container variables inside the BPM.
    Regards
    Stefan

  • Webdynpro - How to retrive the http header

    Hi,
    Normally you will be able to retrieve the http header from the java dynpro HttpServletRequest but I have do you retrieve it from a <b>JAVA webdynpro component</b>. Have not been able to figure it out so please any help appreciated.

    Hi Rasmus,
    try the following to catcth the request object.
    WDProtocolAdapter.getProtocolAdapter().getRequestObject()
    Regards,
    Shubhadip

  • How to uncompress the HTTP body(gzipped) in AMFConnection

    I experienced a problem while using AMFConnection in a client program. Usually it works fine, but some time it throws exception that says "unsupported amf version......", something like that. After analysis, I noticed the response body from server is gzipped. Hence it causes AMFConnection deserialize failure. Is there way to decompress the HTTP body before deserialization.

    I experienced a problem while using AMFConnection in a client program. Usually it works fine, but some time it throws exception that says "unsupported amf version......", something like that. After analysis, I noticed the response body from server is gzipped. Hence it causes AMFConnection deserialize failure. Is there way to decompress the HTTP body before deserialization.

  • How to suppress the HTTPS alert in a JSP page?

    Hi,
    I have a JSP page which is https,
    If I try to move from that page to another https site or refresh the same page ,
    I am getting the security alert ,
    How to suppress that alert
    Please help me out,
    It is more urgent ....

    I think it is possible because i have seen some sites in the internet which is https but I didnt see any alert for that
    Please help me out

  • How to get the HTTP response body if the body is a malformed XML document

    Hi,
    I am using HTTP service with resultFormat = "e4x" set. What i
    get in response is a malformed XML document in
    some cases. Usually HTTPService throws a FaultEvent with the
    fault detail set to faultCode:Client.CouldNotDecode
    faultString:'Error #1091' or some other Error #1085 and so.
    My client tries to log these errors on the server by using
    another HTTP service again. But i would like to know
    in the client code during run time what exact XML response
    came in the first HTTP response.
    How do i retrieve this information?
    thanks,
    Sunil

    service capture or charles debug proxy can do the job.
    flex builder 4 is rumored to include a traffic sniffer as
    well, but that's next year.

  • How to implement the runtime compression of texture?

    I've read the doc here:
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d5b.html
    Flash Player 11.4 and AIR 3.4 support runtime texture compression, which is useful in certain situations, such as when rendering dynami textures from vector art. To use runtime texture compression, perform the following steps:
    Create the texture object by calling the Context3D.createTexture() method, passing either flash.display3D.Context3DTextureFormat.COMPRESSED orflash.display3D.Context3DTextureFormat.COMPRESSED_ALPHA in the third parameter.
    Using the flash.display3D.textures.Texture instance returned by createTexture(), call either flash.display3D.textures.Texture.uploadFromBitmapData() orflash.display3D.textures.Texture.uploadFromByteArray(). These methods upload and compress the texture in one step.
    I tried to follow the steps but get an error:
    Error: Error #3763: Sampler 0 binds a texture that that does not match the read mode specified in AGAL. Reading compressed or single/dual channel textures must be explicitly declared.
              at flash.display3D::Context3D/drawTriangles()
    should I put some instruction on agal side also?

    thanks for the reply, and sorry for late response. Here's the whole code for the test, and I grabbed the AGALMiniAssembler.as from here :
    https://github.com/PrimaryFeather/Starling-Framework/blob/master/starling/src/com/adobe/ut ils/AGALMiniAssembler.as
    I don't know where else to find an up to date one, please give me a link, thanks
    here's the full code, I embed a png file and try to uploadFromBitmapData, which gives me an error:
    Error: Error #3763: Sampler 0 binds a texture that that does not match the read mode specified in AGAL. Reading compressed or single/dual channel textures must be explicitly declared.
              at flash.display3D::Context3D/drawTriangles()
              at sandbox::TestCompressedTexture/enterFrame()[/Volumes/MacintoshHD/Users/dawn/Documents/wor kspace/work/dev/smodel/src/sandbox/TestCompressedTexture.as:150]
    package sandbox
              import com.adobe.utils.AGALMiniAssembler;
              import com.adobe.utils.PerspectiveMatrix3D;
              import flash.display.Sprite;
              import flash.display.Stage3D;
              import flash.display.StageAlign;
              import flash.display.StageScaleMode;
              import flash.display3D.Context3D;
              import flash.display3D.Context3DProfile;
              import flash.display3D.Context3DProgramType;
              import flash.display3D.Context3DRenderMode;
              import flash.display3D.Context3DTextureFormat;
              import flash.display3D.Context3DVertexBufferFormat;
              import flash.display3D.IndexBuffer3D;
              import flash.display3D.Program3D;
              import flash.display3D.VertexBuffer3D;
              import flash.display3D.textures.Texture;
              import flash.events.Event;
              import flash.geom.Matrix3D;
              import core.Scene3D;
              [SWF(width="600",height="800",frameRate="60")]
              public class TestCompressedTexture extends Sprite
                        [Embed(source="../../assets/tex_cube.png")]
                        private var TexCube:Class;
                        private var _swfHeight:int;
                        private var _swfWidth:int;
                        public var context3D:Context3D;
                        public var viewMatrix:Matrix3D = new Matrix3D();
                        public var projectionMatrix:PerspectiveMatrix3D = new PerspectiveMatrix3D();
                        public var meshIndexData:Vector.<uint> = Vector.<uint>
                                            0, 1, 2, 0, 2, 3,
                        public var meshVertexData:Vector.<Number> = Vector.<Number>([
      //x,y,z     u,v    nx,ny,nz
                                  -1, -1,  1, 0, 0,  0, 0, 1,
                                  1, -1,  1, 1, 0,  0, 0, 1,
                                  1,  1,  1, 1, 1,  0, 0, 1,
                                  -1,  1,  1, 0, 1,  0, 0, 1,
                        private var indexBuffer:IndexBuffer3D;
                        private var vertexBuffer:VertexBuffer3D;
                        private var program:Program3D;
                        private var _modelViewProjection:Matrix3D = new Matrix3D();
                        private var modelMatrix:Matrix3D = new Matrix3D();
                        private var texture:Texture;
                        private var uvBuffer:VertexBuffer3D;
                        public function TestCompressedTexture()
                                  _swfHeight = 600;
                                  _swfWidth = 800;
                                  if (stage!=null){
                                            init();
                                  }else{
                                            addEventListener(Event.ADDED_TO_STAGE,init);
                                  projectionMatrix.identity();
                                  projectionMatrix.perspectiveFieldOfViewRH(45.0,_swfWidth/_swfHeight,0.001,100.0);
                                  modelMatrix.identity();
                                  viewMatrix.identity();
                                  viewMatrix.prependTranslation(0,0,-5);
                                  super();
                        private function init(e:Event=null):void{
                                  if (hasEventListener(Event.ADDED_TO_STAGE))
                                            removeEventListener(Event.ADDED_TO_STAGE,init);
                                  stage.scaleMode = StageScaleMode.NO_SCALE;
                                  stage.align = StageAlign.TOP_LEFT;
                                  stage.stage3Ds[0].addEventListener(Event.CONTEXT3D_CREATE,onContext3DCreate);
                                  stage.stage3Ds[0].requestContext3D(Context3DRenderMode.AUTO,Context3DProfile.BASELIN E);
                        protected function onContext3DCreate(e:Event):void
                                  removeEventListener(Event.ENTER_FRAME,enterFrame);
                                  var t:Stage3D = e.target as Stage3D;
                                  context3D = t.context3D;
                                  if (context3D == null){
      return;
                                  context3D.enableErrorChecking = true;
                                  context3D.configureBackBuffer(_swfWidth,_swfHeight,0,true);
                                  dispatchEvent(new Event(Scene3D.SCENE3D_CREATED));
                                  createProgram();
                                  createTexture();
                                  createBuffer();
                                  addEventListener(Event.ENTER_FRAME,enterFrame);
                        public function createProgram():void{
                                  var vsa:AGALMiniAssembler = new AGALMiniAssembler();
                                  var vs:String =
      "m44 op, va0, vc0\n" +
      "mov v0, va1\n" //uv
                                  var fs:String =
      "tex ft0, v0, fs0 <2d,repeat,nomip>\n"+
      "mov oc ft0 \n"
                                  program = vsa.assemble2(context3D,1,vs,fs);
                                  context3D.setProgram(program);
                        public function createBuffer():void{
                                  indexBuffer = context3D.createIndexBuffer(meshIndexData.length);
                                  indexBuffer.uploadFromVector(meshIndexData,0,meshIndexData.length);
                                  vertexBuffer = context3D.createVertexBuffer(meshVertexData.length/8,8);
                                  vertexBuffer.uploadFromVector(meshVertexData,0,meshVertexData.length /8);
                        public function createTexture():void{
    //                              texture = context3D.createTexture(512, 512, Context3DTextureFormat.BGRA, false);
                                  texture = context3D.createTexture(512, 512, Context3DTextureFormat.COMPRESSED, false);
                                  texture.uploadFromBitmapData(new TexCube().bitmapData);
                        protected function enterFrame(event:Event):void
                                  context3D.clear();
                                  _modelViewProjection.identity();
                                  _modelViewProjection.append(modelMatrix);
                                  _modelViewProjection.append(viewMatrix);
                                  _modelViewProjection.append(projectionMatrix);
      // pass our matrix data to the shader program
                                  context3D.setProgramConstantsFromMatrix(
                                            Context3DProgramType.VERTEX,
                                            0, _modelViewProjection, true );
                                  context3D.setVertexBufferAt(0, vertexBuffer, 0, Context3DVertexBufferFormat.FLOAT_3);
                                  context3D.setVertexBufferAt(1, vertexBuffer, 3, Context3DVertexBufferFormat.FLOAT_2);
                                  context3D.setTextureAt(0,texture);
                                  context3D.drawTriangles(indexBuffer);
                                  context3D.present();

Maybe you are looking for