Socket to Facebook won't POST data

I am trying to read data from my home page on m.facebook.com (since Facebook Mobile is HTTP only). I connect, then send POST data with my username and password, but when I read in the content from the socket, it's the HTTP corresponding to the login page. I have tried a very similar program to this on other websites and have been successful. Am I doing something wrong, or is it possible that Facebook is somehow blocking me?
There is a post_form_id that is sent in with the POST data, but I tried altering it with TamperData and I was still able to log in using Firefox so I don't think this is the problem.
The username and password listed in the code actually work so you can try it yourself. ([email protected], testfacebookjava)
Apparently there are no longer "code" tags on this forum? I'm confused...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
public class Facebook
     public static void main(String[] args)
          try
               URL url = new URL("http://m.facebook.com/login.php");
               URLConnection connection = url.openConnection();
               connection.setDoOutput(true);
               OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
               out.write("lsd=&post_form_id=ad8ca84895f63d5153279b6eb4794ca2&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=test.fbjava%40yahoo.com&pass=testfacebookjava&login=Log+In");
               out.close();
               BufferedReader in = new BufferedReader(new InputStreamReader((InputStream) url.getContent()));
               String line;
               while((line = in.readLine()) != null)
                    System.out.println(line);
          catch(IOException e) { e.printStackTrace(); }
}

Host=login.facebook.com
User-Agent=Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language=en-us,en;q=0.5
Accept-Encoding=gzip,deflate
Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive=115
Connection=keep-alive
Referer=http://m.facebook.com/
Cookie=datr=zMNNTXK_7tJj3AFBRUD0RDSe; lu=gAPk4GsG5J0xUpNKMPKtKtHw; m_user=test.fbjava%40yahoo.com%3A0%3A%3A0%3A6df7bcad%3A1297125664; locale=en_US; L=20; cur_max_lag=20; act=1297262301164%2F12; x-referer=http%3A%2F%2Fwww.facebook.com%2F%3Fsk%3Dlf%23%2F; made_write_conn=1297262349; W=1297262349; lsd=y_qu1; presence=DJ297262351BchADhA_22127.channel_22BsubA_5b0_5dBF297262338625WMblcMsndPBsMbloMbvtP297262301BctMsbPBtA_5b_5dBfAnullBuctA0QBblADacA21V297262313Z225BlcPQQ; wd=1600x707; reg_fb_gate=http%3A%2F%2Fm.facebook.com%2F; reg_fb_ref=http%3A%2F%2Fm.facebook.com%2F
Content-Type=application/x-www-form-urlencoded
Content-Length=198
POSTDATA=lsd=&post_form_id=86585ec2452bf0e02fd10f358b3d9b3a&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=test.fbjava%40yahoo.com&pass=testfacebookjava&login=Log+In
How can I find out what is being sent using the URLConnection?
I tried modifying the eclipse.ini to include something about changing the user agent to something other than Java, I forget what exactly I tried but it didn't work. I will look for the website again and update you with what I tried.
Also, is it possible that since the host is login.facebook.com instead of m.facebook.com (this was found using TamperData with Firefox on m.facebook.com) there is something I need to change?
Update: I added -Dhttp.agent=Mozilla/5.0 to the end of eclipse.ini as per http://stackoverflow.com/questions/1526956/change-user-agent-in-eclipse-3-5-for-new-software-installations
From what I've seen this is not the right way to do it, since "Java" is still included in the agent. I haven't found anywhere that tells how to remove the Java part.

Similar Messages

  • MSI P55-GD55 Won't post 3 Beeps-Need Assistance

    Built many PCs but never had a problem like this.  Starting to think MB is bad.
    Built this in Dec 2008
    MSI P55-GD55
    A-DATA Gaming Series 4GB (2 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600
    Intel Core i5-750
    OCZ ModXStream Pro OCZ500MXSP 500W
    MSI N95GT-MD512Z GeForce 9500 GT 512MB 128-bit GDDR2 PCI Express 2.0 x16 HDCP Ready Video Card
    Western Digital Caviar Black WD1001FALS 1TB
    COOLER MASTER Hyper 212 Plus Cooler
    2 weeks ago PC would do nothing at all after I turned off and then tried to restart.  Thought I had bad power supply, but it checked out. Cleared cmos  by removing battery and turned off oc genie and that seemed to cure problem.
    Left PC on ever since.  Had to turn off yesterday to check unrelated network issue and when I tried to restart It won't post.   Just get 3 beeps.  No video.  Nothing.  Tried to clear cmos, switch memory sticks, only use one mem stick in slot 1 and I get nothing but 3 beeps.  Very unlikely that both sticks are bad.  Tried powering on from internal switch and got nothing but 3 beeps.  Beeps are less than 1 second in duration so I guess they are short beeps.   
    Any thoughts are greatly appreciated.
     If I have to RMA to MSI how long does it take to get replacement?  What do I have to send to MSI, all contents of retail box or just the board?

    Quote
    If I have to RMA to MSI how long does it take to get replacement?
    Quote
    I am ready to toss this board and buy another unless I can get this working.
    At the moment there is know certainty about the definate cause for your problem.  What makes you so sure that the board is the cause (and not your CPU (which hosts the memory controller, after all), faulty RAM sticks (have you tested every single stick of RAM you have in the first slot (check user manual) and cleared CMOS (with A/C power cable unplugged from PSU before each new start-up attempt)?).
    A contact problem between CPU Pads and board socket pins could also cause this (please reseat CPU and heatsink).  Another possible cause is a short-circuit problem inside the case (test the board outside the case on a non-conducting surface).

  • While creating miro error message posting date 009 2011is not open

    sir
    while creating miro the error message is not open open for the posting date 009 2011

    Hi,
    The date format you have mentioned 009 2011 won't be supported by SAP system. Please enter it in correct format. If the format is OK an not working means MM posting periods are not open for this month this error will come.In MMPV give company code and specify the period to close  and save.Again go to same transaction open the period for this month. I hope this will resolve your issue. Thanking you.
    Edited by: Padmasri Garapati on Sep 16, 2011 6:58 AM

  • Cannot read any form posted data

    I create a web server :
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class TestWeb extends Thread {
        Socket soc;
        ServerSocket server;
        InputStream is;
        BufferedReader br;
        public void run() {
            try {
                while (true) {
                    soc = server.accept();
                    if (soc!=null)
                    is = soc.getInputStream();
                    br = new BufferedReader(new InputStreamReader(is));
                    String line = "";
                    while (line!=null) {
                        line = br.readLine();
                        if (line==null) continue;
                        System.out.println(line);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public TestWeb() {
            try {
                server = new ServerSocket(80);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public static void main(String[] arg) {
            try {
                new TestWeb().start();
                System.in.read();
            } catch (Exception ex) {
                System.out.println(ex.toString());
    }It can read the header when someone connect to this server
    However, it cannot read any form posted data.
    Does anybody have any idea?
    The following is the html source that i use in a browser to connect to the test server
    <HTML><BODY>
      <CENTER><H1><FONT COLOR=BLUE><B>Test</B></FONT></H1></CENTER>
      <HR>
      <FORM METHOD="POST" ACTION="http://127.0.0.1">
        <INPUT TYPE=TEXT VALUE="abcde">
        <SELECT>
          <OPTION VALUE="1">1</OPTION>
          <OPTION VALUE="2">2</OPTION>
        </SELECT>
        <INPUT TYPE=SUBMIT>
      </FORM>
    </BODY></HTML>

    I would expect the form data posted to be received. For example, the user chooses the option value and the text input value.
    This test is hang just after receiving the header information and no parameters collected.

  • RSS feeds won't post numbers anymore

    When I up graded Safari won't post the number of articles that are new anymore. It won't do on my bookmark bar or bookmark menu. I have tried resetting and nothing seems to work.

    Welcome to Apple Discussions
    RSS is a new feature, whose inner workings are still somewhat mysterious. In short, you may have a corrupted data base file, which is not working as designed.
    This thread will give you guidance about removing and resetting the data base file from your User Library>Syndication folder.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.6)   LaCie 160gb d2 HD Canon i960 printer

  • 2LIS_04_P_ARBPL - figures are grouped according to latest posting date!!

    We are trying to fill setup table for App 4 and afterwards when we extract the DS 2LIS_04_P_ARBPL we are getting figures clubbed together based on latest posting date
    for ex: a given production order and type, if AFRU table shows below entries:
    16.01.2012      1.5
    17.01.2012      1.0
    19.01.2012      0.2
    then in setup table we have only one row (figures are grouped and shown against the latest posting date!!
    19.01.2012    2.7
    what is the solution?

    Hi,
    Most of the times data won't fill in the base tables, because the reason is, at the time of data entrry by users, there are certain conditions , so until and un less all that conditions fullfill, then only all feilds will fill in the base tables. I faced the same problem for 2lis_04_p_matnr datasource, I'm not getting Batch, so I enhaced teh datasource. So better add ZZ feild to datasource and enhace the ds based on AFUM table (Based on the process order)
    Thanks
    Reddy

  • Posting Date in 2LIS_04_P_ARBPL not always filled

    Who knows a solution to the following issue:
    The posting date (BUDAT) is used for assigning production order data (work center view) extracted with 2LIS_04_P_ARBPL to reporting periods in BW reporting.
    When testing the extraction with 2LIS_04_P_ARBPL, the field "BUDAT" is only rarely filled. (AFRU-BUDAT is filled for the concerned orders). Therefore period reporting is not possible.
    What could be the reason for the missing BUDAT, i.e. when does the extract structure MC04P_0ARB  provide a posting date? What are the conditions which need to be fulfilled in ECC system before extraction?
    Any hint for resolving the issue will be appreciated!
    Edited by: Elisabeth Liberda on Oct 9, 2008 2:39 PM

    Hi,
    Most of the times data won't fill in the base tables, because the reason is, at the time of data entrry by users, there are certain conditions , so until and un less all that conditions fullfill, then only all feilds will fill in the base tables. I faced the same problem for 2lis_04_p_matnr datasource, I'm not getting Batch, so I enhaced teh datasource. So better add ZZ feild to datasource and enhace the ds based on AFUM table (Based on the process order)
    Thanks
    Reddy

  • Post Data to TCP/IP Port.

    What is the best way to post data to an TCP/IP Port.

    If I understand you right, try sockets. You can write there as to usual Input\Output Stream.

  • Write the DDL to construct the Facebook User and Post tables in SQL server.

    Write the DDL to construct the Facebook User and Post tables in SQL server. You need to populate the user table with the user’s information provided as in Figure 1 and additional attributes may be needed for the design. Use the ID in the excel file to
    identify the other Facebook user. For example ID 612831408762037 is David Cunliffe. Import the excel sheets to SQL server and then write effective SQL to merge the two tables into the Post table. Ensure the relationship is maintained between entities. Submit
    the SQL scripts that create the database and tables, import the excel sheets and populate the tables such that one can re-create the database and tables with all the data by running the script.

    IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = N'xxx')
    CREATE DATABASE xxx
    GO
    USE xxx
    IF EXISTS(SELECT * FROM sys.tables WHERE name = N'DAVID') 
    DROP TABLE DAVID;
    IF EXISTS(SELECT * FROM sys.tables WHERE name = N'JOHN')
    DROP TABLE JOHN;
    IF EXISTS(SELECT * FROM sys.tables WHERE name = N'NEWDAVID') 
    DROP TABLE NEWDAVID;
    IF EXISTS(SELECT * FROM sys.tables WHERE name = N'NEWJOHN') 
    DROP TABLE NEWJOHN;
    IF EXISTS(SELECT * FROM sys.tables WHERE name = N'USER') 
    DROP TABLE [USER];
    IF EXISTS(SELECT * FROM sys.tables WHERE name = N'POST') 
    DROP TABLE POST;
    CREATE TABLE DAVID(
    ID VARCHAR(100),
    [MESSAGE] VARCHAR(MAX),
    [TYPE] VARCHAR(MAX),
    CREATED_TIME VARCHAR(MAX),
    UPDATED_TIME VARCHAR(MAX),
    SHARES_COUNT VARCHAR(MAX),
    [COUNT OF LIKES NAME] VARCHAR(MAX),
    [COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
    LINK VARCHAR(MAX),
    NAME VARCHAR(MAX),
    [DESCRIPTION] VARCHAR(MAX),
    CREATE TABLE JOHN(
    ID VARCHAR(100),
    LINK VARCHAR(MAX),
    NAME VARCHAR(MAX),
    [DESCRIPTION] VARCHAR(MAX),
    [TYPE] VARCHAR(MAX),
    CREATED_TIME VARCHAR(MAX),
    UPDATED_TIME VARCHAR(MAX),
    [COUNT OF LIKES NAME] VARCHAR(MAX),
    [COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
    [MESSAGE] VARCHAR(MAX),
    SHARES_COUNT VARCHAR(MAX),
    EXECUTE (N'BULK INSERT DAVID FROM ''' + 'datapath' + N'david.csv''
    WITH (
        CHECK_CONSTRAINTS,
        CODEPAGE=''ACP'',
        DATAFILETYPE = ''char'',
        FIELDTERMINATOR= '','',
        ROWTERMINATOR = ''\n'',
        KEEPIDENTITY,
        TABLOCK
    EXECUTE (N'BULK INSERT JOHN FROM ''' + 'datapath' + N'john.csv''
    WITH (
        CHECK_CONSTRAINTS,
        CODEPAGE=''ACP'',
        DATAFILETYPE = ''char'',
        FIELDTERMINATOR= '','',
        ROWTERMINATOR = ''\n'',
        KEEPIDENTITY,
        TABLOCK
    SELECT * FROM DAVID
    SELECT * FROM JOHN
    CREATE TABLE NEWDAVID(
    POST_ID VARCHAR(100),
    [USER_ID] VARCHAR(100),
    CREATED_DATE VARCHAR(MAX),
    CREATED_YEAR VARCHAR(MAX),
    CREATED_MONTH VARCHAR(MAX),
    UPDATED_DATE VARCHAR(MAX),
    UPDATED_YAER VARCHAR(MAX),
    UPDATED_MONTH VARCHAR(MAX),
    [MESSAGE] VARCHAR(MAX),
    SHARES_COUNT VARCHAR(MAX),
    [COUNT OF LIKES NAME] VARCHAR(MAX),
    [COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
    NAME VARCHAR(MAX),
    [TYPE] VARCHAR(MAX),
    LINK VARCHAR(MAX),
    [DESCRIPTION] VARCHAR(MAX),
    CREATE TABLE NEWJOHN(
    POST_ID VARCHAR(100),
    [USER_ID] VARCHAR(100),
    CREATED_DATE VARCHAR(MAX),
    CREATED_YEAR VARCHAR(MAX),
    CREATED_MONTH VARCHAR(MAX),
    UPDATED_DATE VARCHAR(MAX),
    UPDATED_YAER VARCHAR(MAX),
    UPDATED_MONTH VARCHAR(MAX),
    [MESSAGE] VARCHAR(MAX),
    SHARES_COUNT VARCHAR(MAX),
    [COUNT OF LIKES NAME] VARCHAR(MAX),
    [COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
    NAME VARCHAR(MAX),
    [TYPE] VARCHAR(MAX),
    LINK VARCHAR(MAX),
    [DESCRIPTION] VARCHAR(MAX),
    INSERT INTO NEWJOHN
    SELECT SUBSTRING(ID, CHARINDEX('_', ID) + 1, LEN(ID) - CHARINDEX('_', ID)) AS POST_ID, 
      SUBSTRING(ID, 1, CHARINDEX('_', ID) -1) AS [USER_ID], 
      SUBSTRING(CREATED_TIME, 1, 10) AS CREATED_DATE,
      SUBSTRING(CREATED_TIME, 1, 4) AS CREATED_YEAR,
      SUBSTRING(CREATED_TIME, 6, 2) AS CREATED_MONTH,
      SUBSTRING(UPDATED_TIME, 1, 10) AS UPDATED_DATE,
      SUBSTRING(UPDATED_TIME, 1, 4) AS UPDATED_YEAR,
      SUBSTRING(UPDATED_TIME, 6, 2) AS UPDATED_MONTH,
      [MESSAGE], SHARES_COUNT, [COUNT OF LIKES NAME], [COUNT OF COMMENTS MESSAGE], NAME, [TYPE], LINK, [DESCRIPTION]
    FROM JOHN
    INSERT INTO NEWDAVID
    SELECT SUBSTRING(ID, CHARINDEX('_', ID) + 1, LEN(ID) - CHARINDEX('_', ID)) AS POST_ID, 
           SUBSTRING(ID, 1, CHARINDEX('_', ID) -1) AS [USER_ID], 
      SUBSTRING(CREATED_TIME, 1, 10) AS CREATED_DATE,
      SUBSTRING(CREATED_TIME, 1, 4) AS CREATED_YEAR,
      SUBSTRING(CREATED_TIME, 6, 2) AS CREATED_MONTH,
      SUBSTRING(UPDATED_TIME, 1, 10) AS UPDATED_DATE,
      SUBSTRING(UPDATED_TIME, 1, 4) AS UPDATED_YEAR,
      SUBSTRING(UPDATED_TIME, 6, 2) AS UPDATED_MONTH,
      [MESSAGE], SHARES_COUNT, [COUNT OF LIKES NAME], [COUNT OF COMMENTS MESSAGE], NAME, [TYPE], LINK, [DESCRIPTION]
    FROM DAVID
    SELECT * FROM NEWDAVID
    SELECT * FROM NEWJOHN
    CREATE TABLE POST (
    POST_ID VARCHAR(100) NOT NULL,
    [USER_ID] VARCHAR(100),
    CREATED_DATE VARCHAR(MAX),
    CREATED_YEAR VARCHAR(MAX),
    CREATED_MONTH VARCHAR(MAX),
    UPDATED_DATE VARCHAR(MAX),
    UPDATED_YAER VARCHAR(MAX),
    UPDATED_MONTH VARCHAR(MAX),
    [MESSAGE] VARCHAR(MAX),
    SHARES_COUNT VARCHAR(MAX),
    [COUNT OF LIKES NAME] VARCHAR(MAX),
    [COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
    NAME VARCHAR(MAX),
    [TYPE] VARCHAR(MAX),
    LINK VARCHAR(MAX),
    [DESCRIPTION] VARCHAR(MAX),
    INSERT INTO POST
    SELECT * FROM NEWDAVID UNION SELECT * FROM NEWJOHN
    SELECT * FROM POST 
    CREATE TABLE [USER] 
    [USER_ID] VARCHAR(100) NOT NULL,
    INSERT INTO [USER] VALUES (612831408762037),(1119736203) 
    ALTER TABLE [USER] ADD PRIMARY KEY([USER_ID])
    ALTER TABLE POST ADD PRIMARY KEY(POST_ID) 
    ALTER TABLE POST ADD FOREIGN KEY([USER_ID]) REFERENCES [USER]([USER_ID])

  • Facebook won't load on my Mac

    I just got my Mac a few months ago, and I never had a problem loading any page. For the past few days Facebook won't open. I Googled many solutions, none of which worked. I restarted multiple times, updated software, deleted cookies, emptied cache, tried Facebook on Firefox, installed the newest Flash, but it won't load anywhere. Every other page loads except Facebook. Please help.

    Hi,
    updated software
    Facebook requires the latest version of Safari which is 5.0.4. Make certain your software is up to date just in case.
    From your Safari menu bar click Safari / About Safari. If the version number is not 5.0.4, click your Apple menu (top left in the menu bar) then click Software Update.
    If you have 5.0.4 installed, from the menu bar click Safari / Preferences - then select the Extensions tab. If you have any installed, turn that off, then restart Safari, try Facebook.
    And again in Safari / Preferences select the Security tab. Make sure the box next to: Java is selected. Then click: Show Cookies. Delete all Facebook cookies. Restart Safari, try Facebook.
    Carolyn

  • Facebook won't load on any browser

    I've seen a lot of people posting since 2009 that they've had this issue but I've yet to see an answer that's worked for me.  Facebook won't load on ANY of the browsers so cookies and cache won't help. When I log out of the Mac and log back in I can get into Facebook for a while so it's not a configuration issue.  I CAN log into facebook through IE on the parallels section.  This started about three months ago for me.

    Did you look at any of the "More Like This" on the right side of the screen? I don't know if they hold the answers for you, but some may be worth taking a peek.
    The usual answer seems to be 'clear your cache' but, as you've done that, it doesn't seem the answer to your problem. When you say 'all browsers' I assume that you mean Firefox, Chrome and Safari? I run Firefox almost exclusively, only using Safari and Chrome for testing purposes and I've tried all three and can't replicate your problem. I don't think that uninstalling Adobe Flash is the answer (and, as it is ubiquitous, it's really a necessary evil).
    Try an app such as Onyx to make sure that everything is actually cleared. If that doesn't help, ring back.
    BTW - is this occurring only when you try to log in to Facebook?
    Clinton

  • I'm having some problems wiht Firefox, for example; Youtube isn't loading right, Facebook won't let me send messages, search up people, and this website i made wont load right also. I've re-installed and updated it but still the same problems. Any help?

    I'm having some problems wiht Firefox, for example; Youtube isn't loading right, Facebook won't let me send messages, search up people, and this website i made wont load right also. I've re-installed and updated it but still the same problems. Any help?

    Because I know enough to be dangerous...  I was trying to extend the two outside columns down....  Instead of just using faux columns which I have fixed since I posted the question.
    The other link problem is the left sidebar links.  When you go to the event photos page I have a repeat of the sidebar links that are on the newsletter page.  I used named anchors on the newsletter page to link to the particular article.  From the Event Photos page the links look like this:
    <a href="1112Visions_Iss1.html/#puzzle" target="_self">[Puzzle]</a>
    The problem I am having is that some of these go to the newsletter page and the anchor and some do not (I get an error message saying it  can't find the page).  To add to the problem is that when we choose say the President's Message, when it goes to the newsletter page and the correct anchor, the newsletter page is missing all the links to the graphics... the photos are missing the graphic for the faux columns is missing.  It makes no sense.  When I preview the newsletter page from Dreamweaver everything shows up fine.
    I do not know if all of this is being caused because I haven't posted this stuff to the site or what.  I've tried re-booting both the browser and Dreamweaver, dumping the cache and still the same nonsense.
    Got any ideas?

  • Can't send POST data from servlet

    Hi,
    I have a servlet that receives data via GET method, process the request and then it has to send feedback to an url, but the query string that
    I have to send must be in a POST method.
    I ilustrate this:
    http://host:port/myservlet?param1=value1
    myservlet proccess and then calls
    http://external_url (with param2=value2 via POST)
    I've tried to put an HttpURLConnection
    URL url = new URL("http://localhost:7001/prueba.jsp");
    java.net.HttpURLConnection con= (HttpURLConnection)url.openConnection();
    //POST data
    URL url = new URL("http://localhost:7001/prueba.jsp");
    HttpURLConnection c = (HttpURLConnection)(url.openConnection());
    c.setDoOutput(true);
    PrintWriter out = new PrintWriter(c.getOutputStream());
    out.println("param2=" + URLEncoder.encode("value2"));
    out.close();
    but I get this error.
    lun mar 10 13:53:46 GMT+01:00 2003:<W> <ListenThread> Connection rejected: 'Login timed out after 5000 msec. The socket
    came from [host=127.0.0.1,port=2184,localport=7001] See property weblogic.login.readTimeoutMillis to increase of decreas
    e timeout. See property weblogic.login.logAllReadTimeouts to turn off these log messages.'
    (it's a weblogic 5.1 problem, i've been researching a little bit)
    And I don't want to call a jsp that generates a post form, and then it's auto-submitted with javascript. (this will be the last remedy!!)
    How can i do this?
    All suggestions will be grateful.
    Thanks in advance.
    PD: sorry for my english :)

    I make an URLConnection and I intended to know if the post data was
    sent right. Then, in my machine, under weblogic 5.1, I developed a jsp with this code:
    <%
    URL url = new URL("http://machine2/examples/prueba.jsp");
    HttpURLConnection c = (HttpURLConnection)(url.openConnection());
    c.setDoOutput(true);
    PrintWriter outd = new PrintWriter(c.getOutputStream());
    outd.println("param1=" + URLEncoder.encode("value1"));
    outd.close();
    c.disconnect();
    %>
    and in machine2 (using tomcat 4.1), I simply put a line in prueba.jsp:
    System.out.println(request.getParameter("param1"));
    and I don't get "value1" in the tomcat log as expected (I think).
    I also tried with adding this properties:
    c.setRequestProperty("Content-Length", size...);
    c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    and it didn't work!
    what's wrong?

  • Post data 2kb to server failed

    hi:
    My app send image to server and it works well with nokia phones , but not with sony ericsson phones.
    The se phones post data in chunked encoding when data size more then 2kb, there seems no chance to make changes to client behavior.
    My server is tomcat 4.1 , it claims to support http1.1 and chunked encoding.
    then why?
    There many post about this topic, but no good or reasonable solution to this.
    What can i do about this? Any advice?
    best regards

    I have run into the same problem on other handsets as well (Nokia, etc.)
    We found two solutions:
    1) The version of apache we were using (1.3?) would not accept chunked POSTs. We upgraded to the latest version (2.2.3?) and magically our chunked POSTS were accepted by the server. I believe this support was added in v2.2 of apache.
    2) You can also roll your own custom imlementation of HTTP POST that operates over sockets. I had to do this once on a BREW handset that refused to send more than 1.5k (total) of POST data.
    Hope this helps,
    Sam

  • As of July 2014 Facebook won't upload photos, yet my iPhone and the PC at work will, what's up with my Mac or Safari?

    as of July 2014 Facebook won't upload photos when trying on my MacBook, yet my iPhone and the PC at work will, what's up with my Mac or Safari? I have updated my Flash and that seems fine. Facebook is not allowing me to upload photos of videos to my profile or friends profiles. Also when I post a link to an article the photo preview with the article no longer shows up either. What the heck??? I am super frustrated. Thanks for any help
    What I have:
    MacBook
    OS X, Version 10.9.3
    Safari
    Version 7.0.4

    I can upload photos to Facebook on Safari 7.0.5 and Mavericks v10.9.4 so update your OS X.
    Go to Apple  top left in your screen. From the drop down menu click Software Update, OR, open the App Store then select Updates from the menu top of that window. Then follow the instructions for updating OS X.
    When you're done, launch Safari then uploading photos on Facebook.
    If you still have problems, troubleshoot Safari extensions and third party plugins.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test. If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow all other plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.

Maybe you are looking for

  • Beginner CORBA idl struct said to be abstract class

    How do I instantiate a class declared in my .idl file for use by the methods implementing the interface? I want to return an array of Record objects in my CORBA implentation, and my .idl file has:  struct Record     long recordNumber;     string firs

  • Sending  Pages formatted document by apple mail changes font.

    I have an iMac 2.66 GHz, 4 GB RAM and using OS 10.6.2(SL) and iWork '09 & Apple's Mail App. A friend prepared a Pages document and sent it to me using Apple's Mail app.. He is using OS 10.5 and iWork '09. He told me that he used the Arial Font and al

  • Drop ASM instance.

    Hi, My OCR got corrupted and I am not able to recover as I don't have backup of that. Because of this, CRS daemon is not coming up and this leads me to clean up this cluster and build it again. I am not much worried as this is my second development e

  • Can I install App Server 10g (10.1.2) on Solaris 10 Operating System

    Hi, I have to install Application Server on Solaris 10 (SPARC) and I have the Setup of AS 10g 10.1.2. So,Can I install this AS on my system. Also I have search for this on OTN and find that AS 10.1.3 is the version that can be used but its installati

  • Validation  the Inbound Idoc Cremas05

    Hi , I have a requirement for inbound IDoc, my scenario is like this , we have to process the ADRMAS03 idoc first. This idoc will contain vendor number in OBJ_ID field .After that we have to process CREMAS05 idoc, at the same time we have to validate