Java and Http posting through Peoplesoft.

Hello everyone, not sure if you can help, but any input or ideas would be appreciated because I ran out of ideas.
I created a java file that connects to a xyhtos server (WebDAV connection). The reason of this project is to be able to upload files to the xythos repository via peoplesoft pages. Uploading the files is fine and works great.
My problem is getting a ticket from it. (A ticket is a string that is appended in the url of the document that is being requested without having the user login to xythos). To get such ticket I need to send login information to the server via a post method. The userid/password needs to be sent through a string that is base64Encode.
When I execute this method the xythos server does not receive login information.
Now here is the strange part, if I execute the same Java program from a Unix command line, with the same parameters, it performs beautifully.
I'm wondering if there is something extra that I need to do when running this java program through PIA. Or if the peoplesoft server needs to be configured a certain way to allow such methods.
If you need me to be more specific or anything that could help you help me, please post. I'm desperate.
Thank you.

HI Jim, thank you for replying.
Unfortunately I can't tell exactly how it's posting because I'm using a package created by another department I work with. If I need to upload a file, delete a file, create directories, all of that is fine. The only trouble is requesting a ticket from xythos. I think for that function it is doing an http post, but not positive. The response I get from the server is
<html><title>Error 401</title><body>
Error: 401
<BR><H1>Forbidden</H1><BR>That action is not authorized. Please ensure that you are authenticated.<BR>
<p><p></p></p>
</body></html>
I just don't understand why through the command line of unix it works and PIA it doesn't. Very strange.

Similar Messages

  • Http.get and http.post is now what under utl_http?

    In previous source code sample(s), the statement http.get(url,response,content_type,proxyServer,proxyPort) doesn't exist in 9i. The sys.utl_http has get_Response but that doesn't take the same arguments. What is the utl_http call that would replace the http.get and http.post of 8i?

    In short, POST requests are for sending any amount of data directly over the connection without changing the URL, and GET requests are for getting limited amounts of information appended to the URL.
    POST requests cannot be bookmarked or emailed and do not change the Uniform Resource Locators (URL) of the response. GET requests can be bookmarked and emailed and add information to the URL of the response.

  • Upload XML data using XSQL and HTTP Post ?

    Upload XML data using XSLQ and HTTP Post: is that possible ?
    An xsql contains an <xsql:insert-request table="aTable">
    The XML data file follows the ROWSET/ROW paradigm.
    What is the HTML form to upload the xml file to the XSQL ?
    I tried:
    <form action="myXSQL.xsql" method="POST" ENCTYPE="multipart/form-data">
    XML data file to upload: <input type="file">
    <input type="submit">
    </form>
    But the answer of myXSQL is:
    <xsql-status action="xsql:insert-request" result="No posted document to process" />
    Where is the problem ?
    Thank you.

    Hello,
    You are posting your XML file as a parameter therefore you should use the <xsql:insert-params/> tag, not the <xsql:insert-request/>. The insert-request can only handle data not posted via a parameter.
    Usage:
    <form action="myXSQL.xsql" method="GET" ENCTYPE="multipart/form-data">
    XML data file to upload: <input type="file" name="myXML">
    <input type="submit">
    </form>
    in combination with
    <xsql>
    <xsql:insert-params name="myXML" table="your table"/>
    </xsql>
    2 remarks:
    I was not able to succesfully POST the form. The answer was <xsql-status action="xsql:insert-request" result="No posted document to process" />. With GET is was succesfull.
    Second, if you use MSInternet explorer 5 or higher use could post the XML directly (not aw parameter) using an ActiveX object.
    Regards,
    Harm Verschuren

  • Upload an XML created in JDE to a website which uses HTTP POST, through BSS

    Hi
    My requirement is : in JD Edwards Enterpriseone XML file will be generated and kept in a folder. I need to upload that XML file to a website which uses HTTP POST? Is it possible to do this using BSSV? How? Please provide inputs immediately.
    Thanks
    TK

    Yes, you could use BSSV for that. As I understand your post, you have an XML file, you just need to POST it. You would write a C BSFN that calls a BSSV, then in the Java code for that BSSV you would use Java capabilities to read the contents of the XML file and POST it. Look at B953002 - it calls the C API jdeCallBusinessService which makes the call out to the BSSV. The Service Consumer samples are a lot more complex than you need - you really just need to build up an XML string that matches the input value object of your BSSV and then call the C API.
    If you also need to create the XML file, then you could also do that quite easily in the BSSV java code.
    Of course all of this could also be implemented in a C BSFN or with Real Time Events and then some middleware to create and POST the XML file ... customers tend to choose the technology where they have the most familiarity and skill.
    --Steve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Java and http request

    when I start a java applet behind a proxy server, a http request can be used by setting proxy variables http.proxyHost and http.proxyPort.
    but is there any way I can get these values from the browser setting(or the internect connection LAN settings on the user's PC)? for the simplest case lets assume we are using internet explorer.
    please let me know on how this can be done?
    thanks!

    To my knowledge, the default situation is that the proxy will be set by the browser.

  • Java and HTTP

    I have programmed an interface program and i wish to use Java to send a search request with 1 or more search strings to a particular URL and retrieve the search results(if any) from the website for my interface program to manipulate and display it on screen to the user. This request and retrieval of search results is supposed to be transparent to the user. Does anyone knows if this is possible? And if it is, which Java API should i look into?

    do you want to create a application accessible through the web? then the previous poster is correct.
    If you want to connect to an application (of your own or someone else) from your java application you want to look at java.net.HttpURLConnection
    regards
    Spieler

  • BAPI_ACC_DOCUMENT_POST and tax posting through the BAPI

    Hi,
    We are using the BAPI_ACC_DOCUMENT_POST to post accounting documents. The BAPI works fine without the tax data but we need the tax data also to get posted for the line items. Please let me know how the ACCOUNTTAX
    and CURRENCYAMOUNT table parameters needs to be populated.
    A sample code would be of much use.
    Currently if we have 3 line items in GL to be posted we fill 3 line items in AccountGL table, one line item in Accounts payable table, 4 line items in the currency table ( 3 for the actual items and 4 th item with summed up quantity of all 3 items) .
    Your help is greatly appreciated.
    Regards,
    Prabaharan.G

    hi,
    i use this function in some program i try to give to u how to set the minimum value in the structure/tables of the bapi.
    > DOCUMENTHEADER                                                        
    >        BUS_ACT                    =    'RFBU'           "for FI document    
    >        USERNAME                =    sy-uname
    >        HEADER_TXT              =    your text
    >        COMP_CODE              =    Company code
    >        DOC_DATE                  =    Document date
    >        PSTNG_DATE              =    Posting date
    >        FISC_YEAR(1)              =    The year of posting date
    >        FIS_PERIOD(1)             =    the period of posting date
    >        DOC_TYPE                  =    document type
    if you set a different year or period from the value that you have in the posting date the bapi trigger an error
    > ACCOUNT GL
    >       ITEMNO_ACC   = progessive number
    >       GL_ACCOUNT  = G/L Account
    >       ITEM_TEXT       = item text
    >       DOC_TYPE      = document type (the same of the header for all item)
    >       COMP_CODE   = company code (the same of the header for all item)
    >       BUS_AREA      = business area
    >       TAX_CODE       = tax code
    if you set a different doc_type or company code for each item the bapi trigger an error
    > ACCOUNTTAX                
    >            ITEMNO_ACC   =  progressive number
    >            GL_ACCOUNT   = G/L Account referred to TAX CODE
    >            TAX_CODE        = TAX CODE
    >            TAX_RATE        =  TAX RATE
    >            ITEMNO_TAX     = progressive number  which tax item is referred
    >CURRENCYAMOUNT
    >           ITEMNO_ACC     =  progressive number
    >           CURRENCY        =  currency
    >           CURRENCY_ISO =  iso currency that you find in TCURC-ISOCD table
    >           AMT_DOCCUR    =  amount with sign the sign +/- identify Debit/Credit Indicator
    > - this field only for tax record
    >           AMT_BASE        =   is the AMT_DOCCUR of the line which ypu want to calculate the tax with sign
    >           TAX_AMT           =    tax amount
    usually for calculate the correct value i use these functions 'CALCULATE_TAX_FROM_GROSSAMOUNT' or 'CALCULATE_TAX_FROM_NET_AMOUNT' it depends if i have the net or gross amount.
    for example:
    DOCUMENTHEADER                                  
    >        BUS_ACT                    =    'RFBU'
    >        USERNAME                =    sy-uname
    >        HEADER_TXT              =    'my_text'
    >        COMP_CODE              =    '0001'
    >        DOC_DATE                  =    '20080115'
    >        PSTNG_DATE              =    '20080115'
    >        FISC_YEAR(1)              =    '2008'
    >        FIS_PERIOD(1)             =    '01'
    >        DOC_TYPE                  =    'SA'
    ACCOUNT GL
    >Record 1
    >ITEMNO_ACC =  0000000001
    >GL_ACCOUNT =   0290111010
    >ITEM_TEXT =   ITEM_TEXT
    >DOC_TYPE =    SA
    >COMP_CODE =    0001
    >BUS_AREA =   GS1                                                                       
    >Record 2
    >ITEMNO_ACC =  0000000002
    >GL_ACCOUNT =    0500103900
    >ITEM_TEXT =   ITEM_TEXT
    >DOC_TYPE =   SA
    >COMP_CODE =   0001
    >TAX_CODE =  V2
    ACCOUNTTAX
    > Record 3
    >ITEMNO_ACC =   0000000003
    >GL_ACCOUNT =  0221103001
    >TAX_CODE =  V2
    >TAX_RATE =  20.000
    >ITEMNO_TAX = 0000000002
    CURRENCYAMOUNT
    >Record 1
    >ITEMNO_ACC = 0000000001
    >CURRENCY =  EUR
    >CURRENCY_ISO =   EUR
    >AMT_DOCCUR  = 150.00
    >AMT_BASE =  0.00
    >TAX_AMT =  0.00
    >Record 2
    >ITEMNO_ACC = 0000000002
    >CURRENCY =  EUR
    >CURRENCY_ISO =   EUR
    >AMT_DOCCUR  = -125.00
    >AMT_BASE =  0.00
    >TAX_AMT =  0.00
    >Record 3
    >ITEMNO_ACC = 0000000003
    >CURRENCY =  EUR
    >CURRENCY_ISO =   EUR
    >AMT_DOCCUR =  -25.00
    >AMT_BASE =  -125.00
    >TAX_AMT =   -25.00
    hope that is useful.
    Bye
    Marco

  • HTTP POST is killing me, please help ...

    Hello,
    I am trying to send an XML file to a php script sitting on a server. I want to do this by HTTP POST through a Java Application.
    I have the following code developed and haven't an iota why the php script won't pick up the XML file.
    If anyone has any idea, suggestions, I will be glad to hear them.
    Random random = new Random();
    final String CONTENT_BOUNDARY = "------------------------" + random.nextInt();
    public String postInvoice(String strFilePathName) {
    HttpURLConnection httpsUrlConnection = null;
    StringBuffer strBuffer = new StringBuffer();
    try {
    // Using the File name passed in, setup FileInputStream Object
    // to be used to get data to write to URL
    File fileToPost = new File(strFilePathName);
    //FileInputStream fis1 = new FileInputStream(fileToPost);
    // Get the actual filename for setting in the form
    String strFileName = fileToPost.getName();
    URL urlPostTo = new URL("http://server/some.php");
    httpsUrlConnection = (HttpURLConnection)urlPostTo.openConnection();
    // Setup RandomAccessFile
    RandomAccessFile rafXML = new RandomAccessFile(strFilePathName, "r");
    httpsUrlConnection.setRequestProperty("REQUEST_METHOD", "POST");
    httpsUrlConnection.setRequestProperty("Accept", "text/xml");
    httpsUrlConnection.setDoOutput(true);
    httpsUrlConnection.setUseCaches(false);
    httpsUrlConnection.setRequestProperty("Content-Type",
    "multipart/form-data");
    Long longTemp = new Long(rafXML.length());
    httpsUrlConnection.setRequestProperty("Content-Length", longTemp.toString());
    PrintWriter pwOut = new PrintWriter (httpsUrlConnection.getOutputStream());
    // Setup a form field
    pwOut.print(CONTENT_BOUNDARY + "\r\n" +
    "Content-Disposition: form-data; name=\"Filename\"; filename=\"" +
    strFileName + "\"\r\nContent-Type: text/xml\r\n\r\n");
    // Send XML contents
    StringBuffer strBufferFile = new StringBuffer();
    long lngFilePointer = 0;
    long lngFileLength = rafXML.length();
    while (lngFilePointer < lngFileLength) {
    String strTemp = rafXML.readLine();
    strBufferFile.append(strTemp);
    lngFilePointer = rafXML.getFilePointer();
    // Write out File Contents
    pwOut.print(strBufferFile.toString());
    pwOut.print("\r\n\r\n" + CONTENT_BOUNDARY + "--\r\n");
    pwOut.flush();
    pwOut.close(); pwOut = null;
    // Once everything is written, call the connect method
    httpsUrlConnection.connect();
    System.out.println("Connected to " + httpsUrlConnection.getURL().getHost());
    BufferedReader br = new BufferedReader(new InputStreamReader(httpsUrlConnection.getInputStream()));
    String strLine;
    while ((strLine = br.readLine()) != null)
    strBuffer.append (strLine);
    strBuffer.append ("\r\n");
    br.close(); br = null;
    System.out.println(strBuffer.toString());
    catch(FileNotFoundException fnfe) {
    System.out.println("FileNotFoundException in HttpPostInvoice : " + fnfe);
    catch (Exception e) {
    System.out.println("Exception in HttpPostInvoice : " + e);
    finally {     
    if (httpsUrlConnection != null) {
    httpsUrlConnection.disconnect();
    return strBuffer.toString();
    }

    Have that application installed and it makes for interesting reading, not sure I understand it all but anyway ..
    Using the code you supplied, this is what is picked up
    POST /some.php HTTP/1.1
    Content-Length: 4844
    User-Agent: Java1.4.0_03
    Host: www.host.com
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    Content-type: application/x-www-form-urlencoded
    POST http://server/some.php HTTP/1.0
    Content-Type: multipart/form-data; boundary=-------------------------1736247667
    Accept: text/xml
    Connection: keep-alive
    Content-Length: 4595
    Cache-Control: no-cache
    Pragma: no-cache
    -------------------------1736247667
    Content-Disposition: form-data; name="Filename"; filename="3000001193.xml"
    Content-Type: text/xml
    <?xml version="1.0"?><Order> ... </Order>
    -------------------------1736247667--
    Using my original code this is what the app picked up ...
    POST /some.php HTTP/1.1
    Accept: text/xml
    Content-Type: multipart/form-data; boundary=------------------------1514140045
    Content-Length: 4557
    User-Agent: Java1.4.0_03
    Host: www.host.com
    Connection: keep-alive
    ------------------------1514140045
    Content-Disposition: form-data; name="Filename"; filename="3000001193.xml"
    Content-Type: text/xml
    <?xml version="1.0"?><Order> ... <Order>
    ------------------------1514140045--
    I really don't know what to make of it, as far as I can see the request header is ok, with the response being 200. That means the request is ok, but shouldn't the response be 201 indicating that the file was created?
    Am going to look at what a POST through a HTML form sends and match up that way ...

  • Mail changes HTTP POST to HTTP GET in HTML attachments?

    Has anyone else noticed this? I'm using an encrypted e-mail system from Voltage Security (www.voltage.com) and my co-workers swear it used to work on the iPhone prior to iPhone 2.0 firmware.
    The way the system works is that it sends encrypted content as an HTML attachment. The recipient opens the attachment, clicks the button, and the browser will then POST the encrypted content back to the server so that the server can decrypt it and display it as output back to the browser.
    The problem is that the iPhone mail application appears to be mangling the attachment and changing the SUBMIT type on the HTML FORM from POST to GET. This totally breaks the system since the server is not expecting a GET and of course, it doesn't have the information necessary.
    There doesn't appear to be a setting to disable this behavior. Is anyone aware of a work-around to prevent Mail on the iPhone from mangling the attachments in this way? Mail on OS X does not behave the same way. The attachment is left in tact on OS X and properly POSTs through the browser (at least when using Firefox as the default browser).

    Yes, but it does not work.
    jserv.log:
    (ERROR) ajp12: Servlet Error: POST is not supported by this URL
    -->
    </HEAD>
    <TITLE>Auto Login</TITLE>
    <H3>Form Test</H3>
    </HEAD>
    <BODY>
    <FORM NAME="myForm" METHOD="POST" ACTION="/servlet/f60servlet?config=mytest">
    <HR>
    <P><PRE>
    <BR> Call forms application
    <BR></PRE>
    <HR>
    <INPUT TYPE=hidden NAME=userid VALUE="mylogin/mypass@mydbserver">
    <INPUT TYPE=submit NAME=click VALUE=Submit>
    </FORM>
    </BODY>

  • Http post to a url from a WebDynpro (Java) application

    Hi,
    I want to send http post parameters to a url from a WebDynpro (Java) component. I need to do this to send OCI catalog data back to SAP SRM.
    I found this thread:
    HTTP Post
    which suggests to use the the Suspend plug for this purpose.
    <quote>
    Sending POST parameters with Web Dynpro Suspend Plugs
    1) Define a an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map
    </quote>
    After adding the postParams parameter of type java.util.Map to the Suspend-plug the WebDynpro gives the following error during build:
    Outbound plug (of type 'Suspend') 'suspend_plug' may have at most two parameters: 'url' of type 'string' and 'postParams' of type 'Map'.
    I use SAP NetWeaver Developer Studio version 7.0.16.
    Does someone know a solution? I would highly appreciate it.
    Thanks in advance.
    Eric

    Hi,
    Please have a look at this thread,
    Pass Table as Input to Adaptive RFC
    Regards,
    Saravanan K

  • Http listener to a thrid party post through url

    hi,
    I am  relatively new to using http and the web service.
    I wish to know
    i. how to create a web service with a output variable (either string or xml) and
    ii. then use a seperate VI to read the variable, written by http post (by third party, could be even through a browser).
    I have seen the function generator demonstration, specifically the math addition example. and for reading back the xml content I use the datasocket read VI with the [text] parameter, however, this would return the current values passed from the labview through the entire URL and not the one which was sent by the browser (Internet Explorer)
    Hope the explanation is clear.
    Do reply in case of more detail.
    Using LabVIEW 2009.
    Thanks in Advance.
    Narayanan

    Hi,
    Thanks for the response.
    Just to describe in detail, I have seen the Function Genertor Web service Demo.
    On this we have a URL mapping of the xml data as:
    /data/:Amplitude/:Frequency/:Noise/ignal
    and when i use the http client GET.vi to read back the data then the same is displayed appropriately using (attached sub vi) ReadURL.vi
    Now, I have couple of queries here,
    i. Where is the dynamic data to the URL posted from?
    ii. If i post the data directly to a variable say :A or :B (in case of Add example) through Web Browser http post, then how do i read the value of the same variable in labview?
    Note: May need to install the "http client Installer" for loading the attached ReadURL.vi.
    Regards,
    K.Narayanan
    Hope this is
    Attachments:
    ReadURL.vi ‏11 KB

  • Java HTTP Post Raw Data

    Hi All,
    I'm looking to make an HTTP post request given the raw data that I have. I've spent a while looking for the solution, made a handful of attempts and I'm looking for a little bit of help. The PHP code for what I'm looking to do looks like this:
    <?
    $url="http://localhost:3009";
    $postdata="<?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <hi></hi>";
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
    $result = curl_exec($ch);
    curl_close($ch);
    echo($result);
    ?>
    My attempt was this:
         private String setXmlPostHeader(Document doc, PostMethod postMethod) throws java.io.IOException, java.io.UnsupportedEncodingException, javax.xml.transform.TransformerException
              ByteArrayOutputStream xmlBytes = new ByteArrayOutputStream();
              XML.serialize( doc, xmlBytes );
              final byte[] ba = xmlBytes.toByteArray();
              String data = new String(ba, "utf-8");
              InputStreamRequestEntity re = new InputStreamRequestEntity(new ByteArrayInputStream(ba));
              postMethod.setRequestEntity(re);
              postMethod.setRequestHeader("Content-type", MediaType.XML.toString() + "; charset=UTF-8");
              return data;
    And then executing the postMethod, but this simply is a post containing no data. Does anyone see anything wrong that I'm doing? Is there an easy way to set the raw http post data in java like there is in php? Thanks.
    -Ken

    Look at the PostMethod documentation. You need to set the multipart request.

  • Can i use combination peoplesoft system  and http adapter on sender side

    hai
    can i use combination peoplesoft system  and http adapter on sender side
    is their any modifications i have to do on module tab
    can any body tell me how to post data to http adapter
    is there any application gui is there to post data

    Hi
    can i use combination peoplesoft system and http adapter on sender side
    >>>Can you explain further what this means.. You can use HTTP adapter on the sender side.
    is their any modifications i have to do on module tab
    >>> No module processor allowed for HTTP adapter.
    can any body tell me how to post data to http adapter
    is there any application gui is there to post data
    >>> Check this document. It gives you information on how to build HTTP based web GUI.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Thanks
    Satish

  • Kerberos Ticket via Java to BW to access BW Querys with HTTP POST

    Hi and thanks for reading,
    im Working with 2004 and the NWDS SP10. We have a project which must show some reports from the HR system via backend and some BW Reports done with Web Application Designer 3.5.
    The user of the project application is able to select personnel numbers or org units in a tree UI element. At design time we do not know hwo many of each he might select (could be a couple of hundreds or even more).
    A URL isn't long enough to support our needs (255 characters border)
    A consultant said that we should use HTTP Post with a Form. He gave me an example like this
    <HTML>
    <BODY>
    <form name="querySelektion" action="<system name>" method="POST">
              <input type="submit" value="Formular senden" />
              <!-- Template Parameter -->
              <input name="SAP-LANGUAGE" type="hidden" value="D" />
              <input name="PAGENO" type="hidden" value="1" />
              <input name="CMD" type="hidden" value="LDOC" />
              <input name="TEMPLATE_ID" type="hidden" value="Z_TEST_AX" />
              <!-- Selektionsparameter -->
              <input name="var_name_1" type="hidden" value="H1_ORGST" /></td>
              <input name="VAR_NODE_IOBJNM_1" type="hidden" value="0ORGUNIT" />
              <input name="var_value_ext_1" type="hidden" value="50058503" />
         </form>
    </BODY>
    </HTML
    This is working beside the fact that i have to fill in my BW username and password. I translated this to Java with  the Jakarta HTTP Librarys into the following code.
    try
                HttpClient httpClient = new HttpClient();
                PostMethod post = new PostMethod("http://<system name>");
                NameValuePair[] data =
                        new NameValuePair("SAP-LANGUAGE", "D"),
                        new NameValuePair("PAGENO", "1"),
                        new NameValuePair("CMD", "LDOC"),
                        new NameValuePair("TEMPLATE_ID", "Z_TEST_AX"),
                        new NameValuePair("var_name_1", "H1_ORGST"),
                        new NameValuePair("VAR_NODE_IOBJNM_1", "0ORGUNIT"),
                        new NameValuePair("var_value_ext_1", "50058503")};
                post.setRequestBody(data);
                int iReturnCode = httpClient.executeMethod(post);
                wdContext.currentContextElement().setTextView(Integer.toString(iReturnCode ));
                post.releaseConnection();
            } catch (IOException ioe)
                wdContext.currentContextElement().setTextView(ioe.getMessage());
    All i get is an Error 401 which means "Not Authorized". The Portal (where the application is running) and the BW do both support Single Sign On and the BW System is configured in the Portal.
    I think the HTTP Post is to generic. I also think that i need to make a authorization before and post the Kereberos Ticket to the BW before.
    But how can i accomplish that? Is there a SAP HelperClass to configure or establish system connections of SSO enabled systems?
    Or is the approach with the HTTP Post in java wrong, maybe there is an easier way to do transfer a lot of personnel or orgunit numbers to the BW Query?
    Thanks in advance,
    Kai Mattern

    Since you mentioned, I now tried to modify the writeToFile method in a few ways (closing the streams, directly setting them to null...), but the "java.lang.IllegalStateException: Already connected" exception remains there
    Actually I suppose this has no effect on the originally reported cookie problem, because if I just completely remove this logwriting (+ the following URL disconnect-reconnect) from the code, the situation is the very same
    I paste my modified writeToFile method anyway, maybe you can tell what I do wrong here, and I can learn from that
        public void writeToFile ( HttpURLConnection urlConnection, String filename ) {
          try {
            BufferedReader bufferedReader = null;
            InputStreamReader inputStreamReader = null;
            // Prepare a reader to read the response from the URLConnection
            inputStreamReader = new InputStreamReader(urlConnection.getInputStream());
            bufferedReader = new BufferedReader(inputStreamReader);
            String responseLine;
            PrintStream printStream = new PrintStream(new FileOutputStream (filename));
            // Read until there is nothing left in the stream
            while ((responseLine = bufferedReader.readLine()) != null)
                printStream.println(responseLine);
            inputStreamReader.close();
            bufferedReader.close();
            inputStreamReader = null;
            bufferedReader = null;
            printStream.close();
          catch (IOException ioException) { /* Exception handling */ }
        } //writeToFile()

  • 10.4.11 and HTTPS through corporate firewall

    At work we just moved to 10.4.11 from 10.4.9, and now apparently anything that requires https doesn't work any more in Safari. We first noticed it with email sites like Hotmail, Gmail, Yahoo mail etc. At work we're going through our corporate firewall which is apparently a Windows-based firewall. I'm not in IT so I can't provide details on that.
    It does appear to be a problem with Safari specifically because Firefox still works with https sites through the same firewall. With Safari, I've tried using both a pac file and setting the proxy settings manually, with the same results either way. Additionally, these Macs were working with these sites when they were on 10.4.9.
    Does anybody know what changed in OS X between 10.4.9 and 10.4.11 that might be causing this problem? Does anybody have any potential solutions? Keep in mind that using Firefox is not an option because it's been outlawed in my department, and similarly I'm not in IT here and I have no control over the firewall or changing anything on it.
    Not being able to get to any secure sites in Safari is a real pain. I had to use Firefox just to post this, because it required a secure sign on. On all these machines everything is fully upgraded through 10.4.11, including Safari 3.1.1. Anything to even point me in the right direction would be helpful. Thanks.

    I may not have a solution, but I can tell you that HTTPS works fine for me from behind my corporate firewall (Safari 3.1.1, OS X 10.4.11). If there's a proxy server needed (there is for me, and that's something you seem to have investigated with your IT department) I assume you have the setting for that enabled in System Preferences > Network > active connection > Proxies tab; also, if the box for HTTPS is checked and you are not behind a proxy server, the connection will fail, so UNcheck the box.
    Note that FireFox uses it's own proxy settings (Preferences > Advanced tab > Network tab > Settings button), bypassing the OS X network prefs.
    Hope this helps...

Maybe you are looking for