Proxy Questions

I have two questions regarding HTTP proxy servers:
1) For redirection codes such as 301, is it more common for the proxy server or the web client to handle the redirection and send another request?
2) Regarding downloading embedded objects, I would appreciate it if anyone could let me know what would be the quickest or easiest classes and methods to use to read and write binary files. The following block was used for downloading base pages. I plan on making an else statement with similar code (but for downloading and writing binary instead of text)
/** this code is in a HTTP proxy server
contentType is a String with the type from the Content-Type header field
FromOServer is a BufferedReader that reads from the original server
ToWClient is a DataOutputStream that writes to the web client using the proxy
if (contentType.equals("text")) {
response = FromOServer.readLine();
while (response != null) {
ToWClient.writeBytes(response + "\r\n");
response = FromOServer.readLine();
Please tell me if you have suggestions for which classes and methods would be either easiest or quickest for doing the same thing above except for binary files instead of Strings of text.

In this reply,
http://swforum.sun.com/jive/thread.jspa?threadID=97152&tstart=0
checkout the reply '3'. That explains how to add a regex to block urls.
but why do you want to deny port 89? (if your requirement is that you want to block a 'local' port -- as opposed to a remote port, -- what you need might be a firewall rather than a proxy.)

Similar Messages

  • H.264 and prores proxy question

    I've read through a ton of posts about proxy and h.264 workflows but didn't find any that answers my specific question.
    My raw video from my camera is mp4 (h.264). I understand that h.264 is not good to edit with, so I have a few options. I use a macbook pro for editing so I have been toying around with prores proxy for editing and it makes a difference on RT playback and rendering while editing, so that's good. When I get ready to output my movie after editing, I relink my project back to the original h.264 source files and that seems to work fine.
    I'm wondering if that's not the right workflow though. Should I transcode the h.264 into prores HQ or LT and then ALSO to proxy, edit with proxy and then relink my project back to the HQ or LT files to output? Or is linking back to my source h.264 files and outputing the right way to go?
    Since the original files must be in the best possible quality that I'm going to get (since they're my original clips), I assume that relinking to them right before output is the way to go but I really don't know much about codecs to know if I'm missing something.
    Thanks in advance for the advice.

    Thanks for your response. I'm shooting with a Sanyo FH1, mostly in 1080p, but I've scaled back to 720 since 1080 was overkill for what I'm doing to save some space.
    The thing I don't quite understand yet is the issue with pointing my project back to the source files after all the editing is finished with prores proxy and just before output. That way, FCP would only have to uncompress the source files to render for final output only one time (besides the initial transcoding), albeit, probably longer than it would be for prores. I'm sold on proxy because it was so much faster to edit with than h.264 and I didn't have to keep any video files after I was finished except my source files....trying to budget hard drive space. I transcoded one file a while back to prores but the file size was more than I wanted to deal with since I only edit on my macbook pro so I didn't try to edit with it. Like you said, maybe just converting to prores and dealing with the space juggling would be the best way to go, or try prores LT to see how the quality is.
    Does converting from h.264 to prores buy me any quality or a better final result, or just a cleaner workflow? Don't misread my questions, I'm not arguing, just trying to understand from you guys that know a lot more about this than I do. Making my living as a developer, it's just ingrained in me to understand this one
    Message was edited by: kenmoberg (updated macos version)

  • Lync 2013 edge-no reverse proxy question

    I deployed lync 2013 edge server and no reverse proxy yet.I am trying to connect from my windows 7 machine with no luck and I can see a top reset on the firewall,my question is is reverse proxy required for the normal client to connect and do basic IM?
    Plz confirm.thx

    *****Update**********
    now when i am trying to test connevity using microsoft connecvitry analyer i am getting error realted to the external certifictare stating that " certificate couldn't be validated because SSL negotiation
    wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation." with UC troubleshotter i am getting the same.any idea?
    PS certificate is from Digi
    cert and i have checked the installation with thier tool and all was green
    regards
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with
    the certificate installation.

  • Flash.utils.Proxy Question

    hi list,
    I am trying to extend flash.utils.Proxy so that I can
    intercept calls
    made on an innerObject and provide cross cutting
    services/advices like
    writing to a log or caching... (AOP...)
    The big problem is that the user of the innerObject needs to
    be aware
    of the ProxyClass otherwise - calls will not be intercepted.
    for example:
    a proxy factory class looks like this-
    public class ProxyFactory
    private var _target:*;
    public function ProxyFactory(target:*){
    _target = target;
    public function GetProxy():*{
    var proxy:AOPProxy = new AOPProxy(_target);
    return (proxy);
    and the usage:
    var person:Person = factory.GetProxy();
    this will produce a runtime casting exception!!
    the fix is to do something like this:
    var person:AOPProxy = factory.GetProxy();
    or even -
    var person:* = factory.GetProxy();
    BUT - this is bad because the user of the factory is aware of
    the
    proxy AND he loose code assist... he cannot see the
    properties of the
    Person Class.
    Does anybody know of a better way (maybe creating runtime
    code
    generated proxies??- code emission...)
    Thanks,
    Chen Bekor
    Software Architect.

    quote:
    it looks a bit strange for a developer to have to instantiate
    objects via a factory to get some AOP functionality. Doesn't this
    tie you down to the specific AOP framework you are using, or am I
    missing something?
    I agree - it was just an example - the question is does
    flash.utils.Proxy is the proper direction to provide AOP in
    ActionScript3?
    quote:
    Have you checked out the AOP framework of as2lib (
    http://www.as2lib.org/)?
    yes I did - its ActionScript2 - and it use deprecated API in
    ActionScript3
    - I'm trying to write my own AOP implementation to
    Flex...
    - do you have any idea?

  • Client Proxy Question

    Hi all,
    Initially, when we have created a client proxy in ECC 5.0 with Oracle on Windows,
    we have chosen Local File as the WSDL source. We had the WSDL saved locally.
    This way we have generated a Client Proxy in SE80.
    Then we created a logical port using LPCONFIG.
    Since this the default logical port, we just saved it with all the settings imported
    from the WSDL definition.
    This way the Client proxy was working fine.
    The doubt that I have is, later on, if we want to just change the URL under
    call paramters in LPCONFIG to the URL of the WSDL residing on some
    other server(Non SAP), will the client proxy work?
    Regards,
    Vishnu

    Hi Gaurav,
    Looking at the error below, the binding is happening.
    However, there is a return code 503. And SAP is not able to access the
    Webservice located at the other server(Non-SAP).
    INFO 01:44:43: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL
    ->IF_SOAP_PROTOCOL~PRE_PROCESS() SOAP Session Protocol
    preprocessed
    INFO 01:44:43: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT
    ->IF_SOAP_TRANSPORT_BINDING~SEND() Try to send message ( DEST =
    ,PATH = ,URL = http://server name:portno/ ,SOAP Action = "ROI_R3
    _DF.roiSAPCreateOrder" )
    INFO 01:44:43: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT
    ->IF_SOAP_TRANSPORT_BINDING~SEND() Message sent
    INFO 01:44:43: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT
    ->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message
    INFO 01:44:52: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE
    _STATUS_CODE() Received return code 503 ( not available )
    ERROR 01:44:52: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE
    _PART~INIT_FOR_DESERIALIZE() A SOAP Runtime Core Exception
    occurred in method XP_READ_TAG of class CL_SOAP_XP at position id
    1 with internal error id 112 and error text no extended error
    message (SOAP_ESERVER) (fault location is 1 ).
    Regards,
    Vishnu

  • Reverse Proxy question

    Hi,
    I'm using the Sun Webserver 7 and my aim is to allow for some URLs to be reverse proxied into a different server altogether. e.g.
    http://xyz.com/test/something.do --> http://abc.com/test/something.do and
    http://xyz.com/test/images/123.jpg --> http://abc.com/test/images/123.jpg
    Notice that the targetURL is essentially similar to the first one with the difference in domain.
    1) The reason I have the /test/ in the target URL is because from what I have observed (and I have used the Webserver console only) if I had to map /test -> http://abc.com/ in the Reverse proxy then it looks like it adds the /test as well which I'd probably not like to have but its something I can live with.
    2) Considering security, I don't want to reverse proxy all of http://abc.com/ but just the http://abc.com/test/ - the issue here though is the /test/. When I set the Reverse Proxy setting to map /test/ to http://abc.com/test/ I get an error during the re-deployment saying
    set-origin-server reports: CORE7706: invalid URL: http://abc.com/test/ [there is a test directory in the docroot and I also created a simple index.jsp in it to be sure]
    When I try with other existing URLs also http://abc.com/images/ I get the same error. So I'm going to assume only the server is expected here and nothing more. Is there a way around that? I see some people mention more specific URLs in their forum posts and wanted to know if there is something I'm missing.
    Thanks for any input.

    Hi,
    I'm using the Sun Webserver 7 and my aim is to allow for some URLs to be reverse proxied into a different server altogether. e.g.
    http://xyz.com/test/something.do --> http://abc.com/test/something.do and
    http://xyz.com/test/images/123.jpg --> http://abc.com/test/images/123.jpg
    Notice that the targetURL is essentially similar to the first one with the difference in domain.
    1) The reason I have the /test/ in the target URL is because from what I have observed (and I have used the Webserver console only) if I had to map /test -> http://abc.com/ in the Reverse proxy then it looks like it adds the /test as well which I'd probably not like to have but its something I can live with.
    You might want to check out pre defined variables and regular expression pattern matching within our product (which provides lot more options than what is possible through the console)
    http://download.oracle.com/docs/cd/E19146-01/821-1827/gdaer/index.html
    For example, I would do some thing like
    a) manually edit the obj.conf or <vs>-obj.conf depending on your configuration
    <Object name="default">
    <If $urlhost =~ "/xyz.com" and $uri =~ "/test/(.*)" >
    <If not $security>
    NameTrans fn=rewrite from="http://abc.com/$1"
    <Else>
    NameTrans fn=rewrite from="https://abc.com/$1"
    </Else>
    </If>
    <If>
    ... rest of the directives..
    </If>
    </Object>
    2) Considering security, I don't want to reverse proxy all of http://abc.com/ but just the http://abc.com/test/ - the issue here though is the /test/. When I set the Reverse Proxy setting to map /test/ to http://abc.com/test/ I get an error during the re-deployment saying
    set-origin-server reports: CORE7706: invalid URL: http://abc.com/test/ [there is a test directory in the docroot and I also created a simple index.jsp in it to be sure]
    ( I believe you shouldn't be using the trailing slash (it should have been http://abc.com/test
    When I try with other existing URLs also http://abc.com/images/ I get the same error. So I'm going to assume only the server is expected here and nothing more. Is there a way around that? I see some people mention more specific URLs in their forum posts and wanted to know if there is something I'm missing.
    In the reverse proxy scenario, can you try this ( you probably do not need my earlier ones too.. )
    <Object name="default">
    <If not $internal and $urlhost =~ "xyz.com">
    NameTrans fn=map from="/test" to=http://abc.com/$1" rewrite-host=true # note: you could also add the name="..." option to this line and associate this map to say uri-/test object etc..
    </If>
    <If>
    ... rest of the directives..
    </Object>
    <Object name="uri-/test">
    </Object>

  • REST Client Proxy Question

    Objective: To call REST service from PB12.5.2 Classic application.
    Current implementation: Using MSXML and INET objects to call GET and POST methods.
    Problem: This implementation works fine until we have bulk calls (like 100K calls to the service in a single session). Sometimes it errors out because the XML sent to the service is 0 bytes (as seen on Fiddler)
    Better alternative: Can we create a new PB.NET PB assembly with a REST client proxy and call the proxy function from our PB classic application? Can we build DLL and reference it from our classic application?
    Is there any working example of the same?
    Bruce - I have seen your example in http://brucearmstrong.sys-con.com/node/2133766/mobile
    You talk about calling the WCF service from the classic application, have you tried the REST service call? I have followed the same steps you have mentioned and hit a roadblock when it came to the REGASM command, not sure which DLL to register now that I have 3 different DLLs. I have explained the steps I have taken in this document - http://www.pbgeeks.com/wp-content/uploads/pbnet.docx
    Thanks,
    Praveen

    You notes show:
    REST client assembly:          CalcPremrequest.dll
    Wrapper assembly:               restsvc_assembly.dll
    The wrapper assembly should already be strong named in the project.  The assembly that doesn't get strong named when PB generates it is the REST client assembly.  That's the one that you'll need to disassemble to IL and then recompile with a strong key name file in order to give it a strong name.  Your document shows you're doing that on the wrapper.
    Both assemblies need to be added to the GAC if that is where you are going to have them.
    You might start out without signing the REST client assembly, and just using the /codebase argument to REGASM to have it create registry entries that point to the local file location.  Once you have it working that way you can then deal with adding the assemblies to the GAC.
    The error you are getting may be a result of the wrapper assembly getting corrupted when you attempted to strong name it.

  • Web client proxy question

    I generated a web service proxy in JDeveloper 10.1.3.2.
    The web service I am going against is a doc/literal type service, and so the response back is a string. I see that a Response_LiteralSerializer was generated, can I use that to get an object from the response string?
    I'm hoping to avoid using dom4j to pull out values from the return.
    Dennis

    Dennis,
    Perhaps the client sections in these tutorials might help:
    http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm
    http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_wstopdown/wstopdown.htm
    Thanks, guus

  • Java via proxy question (bug?)

    Hi folks,
    I'm testing running Java apps through a web proxy (Squid) that's using NTLM authentication. However, I seem to be having problems getting any apps to run over https. For some reason, the JRE just keeps prompting for authentication -- even after a correct username and pw is entered. At no point does the app download and run. Testing shows that this only occurs on the Win32 versions of the JRE (tested 1.4.2_12, 1.5.0_08, and 1.6 beta2), and occurs regardless of browser (IE6 and Firefox 1.5+). The Linux version of the JRE seems to work fine. Searching through the bug db has turned up somewhat similar items, but notthing quite the same. Same with google. Has anyone else run into this problem?

    Hello everybody,
    I am experiencing the same problem with JRE 1.5.0._10 and JRE 1.6.0. My proxy is a squid/2.6.STABLE9, browser is IE 6 and client is winXP.
    What I found looking at the HTTP traffic is that Java tries to authenticate using HTTP/1.1, while squid replies using HTTP/1.0.
    Furthermore, if I compare IE connections and java connections, I found that IE requires "Proxy-connection: keep-alive" while this is not done by java. This could explain the behaviour of squid that closes the TCP connection after the reply to java, so preventing NTLM authentication.
    Maybe a bug should be open?

  • Asr9k dhcp proxy question

    Hi.
    There's a propietery dhcp server that in certain cases, assigns yiaddr=127.0.0.1. The goal is to get rid of unwanted clients.
    An asr9k configured as dhcp proxy sends a release for every ack for yiaddr=127.0.0.1, so client never gets this assignment and tries again and again multiplying traffic.
    I know this dhcp server config doesn't make much sense, but I don't see any limitations about this on rfc2131 nor draft-ietf-dhc-proxyserver-opt-05.
    Is there any way to workaround this?
    Thanks!
    Diego

    DHCP Proxy uses the VIP and not the management IP of the WLC. Is one of the WLC ports connected to your internal network and the other port connected to the FW? Again with DHCP Proxy enabled, traffic will flow to your internal DHCP server as long as you have all the dhcp server address configured on the interfaces and have ip helper-address setup on the L3 interfaces.
    Here is a doc regarding DHCP Proxy:
    http://www.cisco.com/en/US/products/ps6366/products_tech_note09186a0080af5d13.shtml#DHCP-Proxy

  • ACE Reverse Proxy question

    Hello, I have a client that needs to reverse proxy sessions to two backend servers. Can the ACE preform reverse proxies?

    Gregg,
    you need to create an action-list and assign it to your policy-map
    switch/Admin(config)# action-list type optimization http avs_default
    switch/Admin(config-actlist-optm)# ?
    Configure optimization actions:
    appscope Appscope measurement against optimization
    cache Cache optimization
    delta Delta optimization
    do EXEC command
    dynamic Enable just-in-time object accelaration
    end Exit from configure mode
    exit Exit from this submode
    flashforward Flashforward optimization
    flashforward-object Flashforward object optimization
    no Negate a command or set its defaults
    You will probably want to use cache forward or cache dynamic.
    More info at
    http://www.cisco.com/en/US/docs/net_mgmt/application_networking_manager/2.0/user/guide/UG_optimization.html
    Gilles.

  • Java mail proxy question

    Hi people, I am trying to build a spam filter program which I found the best way to connect this program and the e-mail programs is to build a proxy mail server between the mail server and the e-mail program.
    I know that there is a program called James which does exactly that but since it is for my school project, I would like to build a very simple one myself. I just want to receive all mails from the the mail server using JavaMail. but I am not quite sure about how to do the connection between the spam filter and the e-mail program.
    Can someone gives me some ideas on how to approach this and which package do I need to implement this task please.
    Thx
    Kevin

    The most typical way to do this is to set your email program up with the mail server as localhost.
    Then write your program to listen on the standard POP3 port (110). When you get a request, turn around and open a connection to the real mail server's port 110, and pass it on. Anything you get back from that connection, send back to the inbound connection that you received on localhost:110.
    If you want a pretty slick implementation of this (just to see how it is done in the real world), I recommend that you download and try out K9 (http://keir.net/k9.html).
    Depending on how sophisticated your app is going to be, you will probably have to look at each request and determine if the response is going to be something that you'll need to modify. Do a google search on the POP3 specification. Also, connecting to port 110 of your mai server with a telnet client will tell you gobs about how the protocol works.
    Also - I'm not sure if the POP3 protocol requires message sizes to be produced separately from the get message command - if it does, and you modify the inbound stream, then the size specified in an earlier call will be wrong.
    Good luck - this sounds like a very challenging (and fun) project.
    - K

  • Root is running Sun One Directory Proxy Question ?

    While i was installing the directory proxy server, i gave all root to own the files? Is Sun One Directory Proxy suppose to run as root or can i run as non-root user ?

    You can (and probably should) run as a non-root user, assuming you're running on a port above 1024.
    If you've already installed as root, and root owns all the files, the following should theoretically work:
    - Shut down DPS
    - Edit <dps-root>/etc/dpsDefaultConfiguration.ldif, and change the ids-proxy-con-userid attribute to the user ID you would like the server to run as
    - Modify the same entry in the directory server that holds your proxy's configuration information, like:
    ldapmodify -h config_dir_host -p config_dir_port -D "cn=directory manager" -w password
    dn: ids-proxy-con-config-name=<instanceName>,ou=system,ou=dar-config,o=NetscapeRoot
    changetype: modify
    replace: ids-proxy-con-userid
    ids-proxy-con-userid: <same value as you put in the LDIF file above>
    - Change the ownership of all the files in the DPS install directory
    - Change over to the user that you selected and try to start the DPS process

  • Different proxy question: IP addresses of requests

    Hi,
              I'm planning on running a weblogic cluster behind a weblogic proxy server,
              using in-memory session replications. Our site will be based almost entirely
              on JSP pages.
              For security purposes of our site, we need to get the IP addresses of the
              browsers that request pages. Normally I could use request.getRemoteAddr() to
              do that. However, when we call getRemoteAddr() from behind the proxy server,
              we get the proxy's address and not the browser's. Is there some other way of
              getting the real address of the browser, through the proxy server?
              Thank you,
              Matias Pelenur
              OnShare, LLC
              

    Hi,
              I don't think this is possible. Besides, even if you could get the weblogic
              proxy server to pass it on to you, you have no guarantee that the user's browser
              is not using a proxy to get access to your WebLogic proxy server so you would
              only get the IP address of the client's proxy server...
              Hope this helps,
              Robert
              Matias Pelenur wrote:
              > Hi,
              > I'm planning on running a weblogic cluster behind a weblogic proxy server,
              > using in-memory session replications. Our site will be based almost entirely
              > on JSP pages.
              >
              > For security purposes of our site, we need to get the IP addresses of the
              > browsers that request pages. Normally I could use request.getRemoteAddr() to
              > do that. However, when we call getRemoteAddr() from behind the proxy server,
              > we get the proxy's address and not the browser's. Is there some other way of
              > getting the real address of the browser, through the proxy server?
              >
              > Thank you,
              > Matias Pelenur
              > OnShare, LLC
              

  • FCPX Proxy question

    Hi there,
    the Proxy-Seetings in FCP X works fine on my mobile computer. The speed is very good,
    but the export quality of the movies is so bad.
    I saw that there is a way to works with proxy but use the orginal media for the final export. Unfortenly the help files are not really helpful regarding this.
    Can anyone descripe to me hoe to do?
    Thanks in advance!
    Best regards!!

    Tom does it make any difference if I'm Color Correcting and Rendering final video with AVCHD as opposed to ProRes.  I'm looking into using a Proxy wrkflow in order to save space on drives.
    What I have been doing is converting my AVCHD footage form my Sony NX5Us to ProResLT and edit and render as needed.  I don't use FCPX to inport and transcode my footage because I don't have a need for ProRes422, as ProResLT is good enough for my needs.
    So which workflow would be more benficial.
    1. Using ClipWrap, Transcode AVCHD to ProResLT > Import to FCPX > Edit > Colro Correct > Export
    2. Using FCPX, Import AVCHD to ProResProxy > Edit with Proxy > Swap to Optimized Media (original AVCHD) to Color Correct > Export
    Would one workflow work better than another, to save disk space, time, and produce beter final output than the other.
    Thank,
    Michael

Maybe you are looking for

  • Access point problem

    I installed a MIDlet in my nokia 6600. When application tries to open an Http connection I have to select the access point. In my mobile I have set my default access point. Still it asks me to select access point everytime. How can I make the access

  • 2 iPads on the same iCloud account.  Duplicate apps?

    I have 2 new iPad Airs that are both on the same iCloud account. The problem I am having is that if I install an app on one iPad, it is automatically installed on the other. Is there a way to disable this feature? I have looked through "Settings" and

  • Exctract data from Post Script file

    Hi all; I need to extract, manipulate some data from post script file send them to database. How can i do that process?

  • Header data/Master Data

    Guys I need clarification with Master data and Header data. Is that Master Data is header data or is it different. Or its considered part of transaction data. And if i should be using header data info-source and when . Since i almost see the same fei

  • Remote control Macbook Pro doesn't work anymore. Please help

    Hi, my IR remote control worked fine initally. Then I didn't use it for a while and when I did again, it didn't work anymore. I changed the battery, but no success. It just doesn't link anymore. What to do? Best regards, Peter