Need to send a 403 (forbidden) message from proxy to client

I have create a List that contains URL's that I want to block from the user. Once I search that list and see that the requested URL is in the list, I need to send a 403(forbidden) message. Does anyone know if I can just send a "HTTP/1.0 403 Forbidden" Header back to the client in bytes from my DataOutputStream object??
Anyone have any other suggestions I would appreciate it.

You can get all you need from the HTTP 1.1 specification. i.e. http://www.w3.org/Protocols/rfc2616/rfc2616.txt

Similar Messages

  • Help sending out long email message from ORACLE PL/SQL

    Hello,
    I need help sending out long email message from ORACLE PL/SQL.
    My message(email body) contains about 4000 characters and comes out truncated somewhere on the middle.
    My business requirements do not allow me to send it as attachment.
    I am using oracle utl_smtp package and on oracle 10gR2.
    Is it possible to send out long text message from Oracle?
    Thanks!
    Ia

    Thank you very much for your responses.
    Even if I use email procedure below my message is getting truncated.
    Here is how I am trying to execute the procedure from sql plus:
    DECLARE
    P_SENDER VARCHAR2(32767);
    P_RECIPIENT VARCHAR2(32767);
    P_SUBJECT VARCHAR2(32767);
    P_BODY VARCHAR2(32767);
    BEGIN
    P_SENDER := 'xxxx@yyy';
    P_RECIPIENT := 'xxxx@yyy';
    P_SUBJECT := 'long text message';
    P_BODY :=
    '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    9 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    10 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    11 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    12 34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    21 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789';
    EMAIL ( P_SENDER, P_RECIPIENT, P_SUBJECT, P_BODY );
    COMMIT;
    END;
    SQL> @long_sp;
    PL/SQL procedure successfully completed.
    The email message is:
    long text message
    xxx@yyyy
    Sent:     Tuesday, May 25, 2010 6:52 AM
    To:     
    xxx@yyyy
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 9 12345678901234567890123456789012345678901234567890123456789012345678901234
    Message is getting truncated around 1000 characters.
    What am I doing wrong?
    Please help!
    Thanks!!

  • Need to send success or failure message to BAPI of SQL query action block

    Hi All,
    I need to send success or failure message(i.e. 1 or 0) to BAPI which has been called below sql query action block in transaction
    Here in SAP, i have created on BAPI with one import parameter and one export parameter.
    In the sql query action block, it insert records in the database table. If it fail or success, that message(numeric value 1 or 0) has to send to SAP program through BAPI.
    I have created a SAP ABAP program which sends message to MII Message listener through RFC then in the process rule message it will call transaction, in transaction, sql query will insert records into database table.  if it success or fail, it will pass to BAPI. And i calling that BAPI in the same SAP ABAP Program to show in the output screen.
    Here the issues, i am not getting the value from BAPI which has send by the transaction in MII.
    SAP Jco, I have mapped in conf. links --> BAPI input with sql query sucess
    Thanks,
    Kind Regards,
    Praveen Reddy M

    Dear All,
    I am facing problem regarding completion notifications in Oraclr r12, when user click the upon completion generated notifications it can only be viewd once, second time user cannot view the notifications.
    I have find that fnd_file_temp table store this information and deleted it.
    Plz help me how to view this URL again.
    thanks
    regards,
    Zubyr

  • 403 forbidden message in linux only

    Hi All,
    In our project we are accessing one web service from Cisco site,
    but recentaly they change their site to HTTPS:// from HTTP://
    so they told to us use https from now onwords,
    Our local application is on Windows xp & uses tomcat 5.0, and java 1.4, It works properly on wondows environment
    But clients application is on linux machine & same tomcat 5.0 & java 1.4, but when we try to access that web service from clients application
    403 forbidden message comes & it shows "null" at output.
    is this Linux setting problem or tomcat setting problem or do I have to add in java application?? Please help....
    Is this right place to ask this question??
    Anybody have any idea about this??
    Thansk in advance

    can you enable logging and see any errors and also take a look into evens log
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Can you send a text (sms) message from a web site form ?

    Anyone know of a reliable script or app that will allow a site visitor to fill out a 'form' and send an instant text message from the site ?  Same as email...but rather than email...type out and send a text message instead ?
    Thanks, Tim

    Tecnically yes. This is because SMS is basically handled just like an email address, ie; [email protected]
    There are services out there that will charge you either flat rate or per message to send them for you as you would need to know what server that number is on. If you want to have people select what carrier that number is on, you just create a mail form with a dropdown with a list of carriers that then set the domain variable in the TO address field. You have to plan that the user doesn't know what carrier that phone number is on, thus where the pay-for sites come in handy.

  • Why am I getting 403 forbidden message?  I'm on OS X 10.7.5

    I was trying to use Ikea's website, www.ikea.com/us and received a '403 FORBIDDEN' message.  What's going on?

    A 403 Forbidden message usually occurs when you try to access files on the websites server. Are you clicking on established links from the Ikea web site.
    The iKea page works for me.
    Try resetting Safari and try again.

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

  • TS3899 I send an e-mail message from my iPhone 5c and it shows up in Sent folder as a duplicate, 2 of the same e-mail messages sent at the same time.

    I send an e-mail message from my iPhone 5c and it shows up in Sent folder as a duplicate message. 2 identical messages sent at the same time. What's up with this? Tried Apple Support by phone, and did a couple of troubleshoots, then my connection with Apple Support was cut off. Issue not resolved yet.

    Did the mail get sent? Is the only issue the fact that it appears twice in the Sent folder?

  • Need a way to permanently delete messages from iphone, even after syncing it with itunes it shows up in search history

    Need a way to permanently delete messages from iphone, even after syncing it with itunes it shows up in search history

    Before iOS 7 I NEVER searched internet for "how to do ... on iPhone ?". Now it's my third time when I cannot find a function to delete all messages on iPhone, that should be and was obvious in previous versions of iOS. To Erase iPhone Contacts, SMS and Photo Permanently,you must to use a iPhone data eraser software.
    This use guide about how to deleted iPhone contacts, message:  How to erase all messages from iPhone permanently

  • Why am I  no longer able to send or receive text messages from my Droid RAZR MAXX HD?

    Why am I no longer able to send or receive text messages from my Droid RAZR MAXX HD? 

        @slotjan49
    I want to ensure you're able to stay connected using your Motorola Droid Razr Maxx HD!  When did this problem begin?  In what zip code are you experiencing this?  Do you get an error message when attempting to send a text?  Are you using a downloaded text messaging application or are you using the preinstalled text messaging application?
    Please try removing and reinserting the SIM Card http://vz.to/1jxFQVZ and retesting.  Please let me know so that I can further assist.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • I can't send or receive text messages from non iphone users

    I can't send or receive text messages from non iphone users

    Under Settings - Messages, do it state Sens SMS ON? Should be (this applies to imessage but just in case).
    Same area, MMS Messaging is on? Should be.
    If all else fails, go into Settings General Reset - Reset Network Settings (this will lose WiFi info but fixes a lot of messaging errors).

  • Flex client can SEND but not RECEIVE messages from BlazeDS

    Hi there,
    I built a sample chat application that should be able to send/receive messages from a JMS topic. However, I am only able to SEND messages, I am not able to receive them. Any advice/suggestions would be GREATLY appreciated as I am seriously stuck.
    My setup:
    - BlazeDS Turnkey
    - FioranoMQ JMS provider on remote machine
    What I know:
    - My MXML code is good. I am able to use the exact same code and get both subscribing and publishing working when I use 'ActiveMQ' instead of 'FioranoMQ' as my JMS provider
    - FioranoMQ JMS provider is working fine, my test Java clients can both subscribe and publish to the same JMS topic that the Flex app uses
    - Publishing from my Flex app is working because my Java client is able to receive messages from the same topic whenever Flex messages are sent to FioranoMQ
    - My Flex app is supposedly 'subscribed' to and 'connected' to the correct (streaming-amf) channel. I know this because the MXML 'Consumer' object's "subscribed" and "connected" properties are true and no fault events appear whenever I issue "consumer.subscribe()" in my Flex app.
    Sample debug console log:
    (I tried sending 8 JMS messages from my Java client code to the 'mytopic' topic that my Flex app is using. The end of the log shows that SOMETHING is happening after sending these messages, but notice the actual 'message' is never streamed even in the log!)
    [BlazeDS] 01/27/2009 FlexSession created with id '72D3E6EED1364AD328F342F1AF59FF
    69' for an Http-based client connection.
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/1)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
    operation = 5
    correlationId = ""
    clientId = null
    timestamp = 0
    body = (Object #1)
    headers = (Object #2)
    DSMessagingVersion = 1
    DSId = "nil"
    timeToLive = 0
    destination = ""
    messageId = "AECE3D84-789C-29B7-3413-197C7A48A7D2"
    [BlazeDS] 01/27/2009 Serializing AMF/HTTP response
    Version: 3
    (Message #0 targetURI=/1/onResult, responseURI=)
    (Externalizable Object #0 'DSK')
    (Object #1)
    DSMessagingVersion = 1.0
    DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
    1.233083202182E12
    (Byte Array #2, Length 16)
    (Byte Array #3, Length 16)
    (Byte Array #4, Length 16)
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Endpoint with id 'flextest-streaming-amf' is streaming mess
    age: Flex Message (flex.messaging.messages.AcknowledgeMessage)
    clientId = null
    correlationId = open
    destination = null
    messageId = ED38E793-E519-95BB-3E4C-1A7E8D716951
    timestamp = 1233083202229
    timeToLive = 0
    body = ED38E793-E50A-2500-E2F5-7525401FD8CE
    [BlazeDS] 01/27/2009 Number of streaming clients for FlexSession with id '72D3E6
    EED1364AD328F342F1AF59FF69' is 1.
    [BlazeDS] 01/27/2009 Number of streaming clients for endpoint with id 'flextest-
    streaming-amf' is 1.
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/2)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
    operation = 0
    correlationId = ""
    clientId = null
    timestamp = 0
    body = (Object #1)
    headers = (Object #2)
    DSEndpoint = "flextest-streaming-amf"
    DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
    timeToLive = 0
    destination = "flextest-message-destination"
    messageId = "5ED8AAA4-BDA8-C8E4-D85B-197C7AC5E83A"
    [BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is starting.
    [BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is

    Hi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
    I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
    'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
    '7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
    'consumer' consumer subscribe.
    'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
    'flextest-streaming-amf' channel settings are:
    'flextest-streaming-amf' pinging endpoint.
    'flextest-streaming-amf' channel is connected.
    'flextest-streaming-amf' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="flextest-message-destination"
      headers=(Object)#0
      messageId="8A592005-3C8A-4C6C-B074-380857710C00"
      operation="subscribe"
      timeToLive=0
      timestamp=0
    'consumer' consumer connected.
    'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
    'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
    Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think?

  • I can neither send nor reply to messages from my iPhone 4.  It may be since I downloaded iOS 6.0 but not sure.

    I can neither send nor reply to messages from my iPhone 4.  It may be since I downloaded iOS 6.0 but not sure.  Any suggestions?

    No, sorry, I meant emails.  I can no longer compose emails or reply to emails on my iPhone -- only receive them.  Any idea why?  Thank you!

  • Hi i need to send bug to fix it  from /opt/SUNWexplo/bin/explorer

    Hi i need to send bug to fix it from /opt/SUNWexplo/bin/explorer ...simply executing the command will generate any files anywhere in the server..or it will give the output in the screen only ..i need to send the output of the command ..help me plz

    Public InfoDoc 203335 is the README for Sun's Explorer.
    [http://sunsolve.sun.com/search/document.do?assetkey=1-9-82329-1|http://sunsolve.sun.com/search/document.do?assetkey=1-9-82329-1]
    That document clearly states that any communication about that software tool needs to go to the email alias that is provided in that InfoDoc.
    All other communications to anywhere else (such as to this forum) will be ignored.
    Though if you had read the Explorer FAQ or its User Guide, you would have your answer as to where the output files might be. The FAQ and the U.G. are also linked in the README InfoDoc.

  • I cannot send or receive text messages from other iPhone users. I don't get an error I just don't receive any messages and the other users do not receive mine.

    I cannot send or receive text messages from other iPhone users. I don't get an error I just don't receive any messages and the other users do not receive mine.

    Reset the devices: Hold down the home button along with the sleep/wake button until you see the apple, then let go.

Maybe you are looking for