How to know the Post parameters of a form?

Hello
I am developing an application where, I have to login to web site, etc. I am newbie in this kind of development. I can access the web page, retreive the page. So, GET part is working fine. I have problem with Post. I am using JDK 1.6 with apache's HttpClient 3.1 for communicating through the web site. After setting parameters in NameValuePair[], when i run execuseMethod(postMethod), it throws the following exception :
i]Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: host parameter is null
I think, I may be going wrong in providing proper headers, parameters, etc. Can anyone help me know:
1. How can I know what parameters, I need to pass in the POST method. Along with form attributes, their may be any hidden values to be passed. How can I find out that.
2. Their is a submit button, how do i deal with that - tell the post method to click it ?
3. Same with headers. Which attributes needs to be set of headers and what values?
I saw some files on net, where prg'er are adding few other parameters that are hidden - but not all hidden parameters!
Any help is appreciative. Please it would be nice if you can help me out. I am new in this type of development. I have spend 2 days looking out for this problem, but couldn't find any help yet. Please any help at the earliest is benificial.
Thanks
Terry

Ok. To check the host before executing the post methd, I gave :
        HttpConnectionManager connectMgr = client.getHttpConnectionManager();  // ************
        HostConfiguration hc = client.getHostConfiguration();                                 // *************
        if (connectMgr.getConnection(hc).isOpen() == true)                                  // EXCEPTION - hc contents r null
            System.out.println("Connection is OPEN");
        else {
            System.out.println("Connection is ******************* NOT OPEN *************** ");
        method.setRequestBody(data);
        int statusCode = 0;
        try {
            statusCode = client.executeMethod(hc, method);
            System.out.println("Register Send: " + method.getStatusLine().toString());
        }catch (HttpException e) {
            method.releaseConnection();
            System.out.println("HTTP EXception : " + e.getMessage());
        }catch (IOException ie) {
            method.releaseConnection();
            System.out.println("Error Exe Method - Post. Status Code = " + statusCode);
            ie.printStackTrace();
        }HttpConnectionManager has hostname, portNo, httpconnectin isopen -> false
HostConfiguration has host, port, localAddress all null
Due to the null value the exception is thrown. What do I do now? Infact, in my GEt also, I tried the same thing, their also host is null of HostConfiguration, but it works well, as it doesn't have to send anything.I have no clue to move ahead.Also, what must be the content length?
Thanks

Similar Messages

  • How to know the DLL parameters

    Someone can tell me how to find the DLL parameters for a function!!!!!!!

    > Someone can tell me how to find the DLL parameters for a function!!!!!!!
    You will need to look in a header file for the DLL or in the
    documentation for the DLL. The information isn't written
    in the DLL and has to be accessed from somewhere else.
    Greg McKaskle

  • How to put the page parameters in to Form?

    i have a form called from a report with 2 parameters in the page url. How can i set the default value with the page parameter in the form.
    thanks

    I only know of two ways to link from a Portal DB Report:
    1) Associating a Link with a report column.
    2) Building a URL as a column and having the column Display As HTML.
    Neither of these methods can be used to set session storage values prior to calling a page. In fact, only the second method can be used if you wish to call a page with parameters.
    Can you provide more detail on your proposed workaround?

  • How to know the parameters passed between the pages

    Hi , am working on the customizations.
    Can anybody tell me how to know the parameters passed between the pages in OAF.
    Thanks a lot in advance.
    regards
    kumar

    U can read
    Framework ToolBox Tutorial Lesson 2, Part 4: Page-to-Page Communication
    in this path
    <<your OAF folder>>jdevdoc\WebHelp\toolbox\510\lessons\lesson2_pagecom.htm
    OAPageContext
    PutEncryptedParameter( )
    GetDecryptedParameter( )
    OAPageContext (called from UI client)
    putTransactionValue( )
    getTransactionValue( )
    removeTransactionValue( )
    OADBTransaction (called from server)
    putValue( )
    getValue( )
    removeValue( )
    OAPageContext (called from UI client)
    TIP the Framework expects to introduce methods for managing session data from the server at some point in the future.
    putSessionValue( )
    removeSessionValue( )
    getSessionValue( )
    Good luck !

  • How to use the POST method In Oracle APEX 3.1

    Hi,
    In APEX if we are submitting the page the parameters( Variables ) will pass through URL.
    How to hide the these parameters from URL??
    I Hope POST method will solve this problem.
    How to use the POST method in APEX???
    Help me out to solve this problem.
    thanks in advance.
    Cheers,
    Shan

    In APEX if we are submitting the page the parameters( Variables ) will pass through URL.No they won't. Submission POSTs the <tt>wwv_flow</tt> form.
    Sometimes a branch may be performed after submission, generating a URL in which parameter values are visible. To avoid this, use the save state before branching option.
    Other actions&mdash;like using navigation lists, or clicking a link in a report&mdash;will perform a GET using parameters in the URL. In these cases using Session State Protection is advised.

  • How to know the count of record in CR XI?

    Post Author: Liu ming
    CA Forum: Deployment
    Hi All,
    I create a report by CR XI release 2. The report is viewed in ASP.Net. So, I would like show a message when the report have no record. My question is how to know the count of record?
    Thanks.

    I was able to do this by using
    ora:countNodes('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500')

  • How to change the posting date at the line item level in a sales order

    how to change the posting date at the line item level in a sales order

    Hi,
    I believe the POSTING DATE will appear on the accounting document
    In the Accounting document, the posting date will be based on the  Billing date.
    Please let me know if you need any more details
    santosh

  • How to know the consumer_group belong to which plan

    Dear all,
    How to know the consumer_group belong to which plan? I found a consumer_group name TEST in table DBA_RSRC_CONSUMER_GROUPS
    , but I can not locate it belong to which Plan.

    Do you have enterprise manager db console configured, then its easy to drill to find that information through few clicks. Not sure what's the sql query to get it. if you find one then do post here.

  • [ASK] How to know the number of usage of each Atomic Service ??

    I correct my question:
    *How to know the number of usage of each Atomic Service by the Domain & Enterprise Services?*
    I want to see the number of usage of each atomic service(AS) by other services (DS & ES)
    ex:
    es_A  ----->  ds_B   (1x)    ----->    as_B    (2x) --> so as_B is accessed by es_A twice (2x)
    es_A  ----->  ds_C   (2x)    ----->    as_C    (2x) --> so as_C is accessed by es_A 4times (4x)
    es_A  ----->  ds_B   (2x)    ----->    as_D    (3x) --> so as_D is accessed by es_A 6times (6x)
    es_B  ----->  ds_B   (1x)   ----->    as_E    (1x) --> so as_E is accessed by es_B once (1x)
    es_B  ----->  ds_C   (3x)    ----->    as_F    (2x) --> so as_F is accessed by es_B 6times (6x)
    es_B  ----->  ds_B   (4x)    ----->    as_G    (1x) --> so as_G is accessed by es_B 4times (4x)
    etc..
    Is there any tool in OSB, WLS, BPEL Console or Java Developer to support it?
    Thank you...

    user13294928 wrote:
    Ganesh wrote:
    Their are two ways to do this
    1. In the sbconsole, when you click on the proxy or any resource name, you will see information about number of references and referenced by as two parameters. Click on the number you will drill down into exact schemas, business service, split joins, etc it refers and who all refers this resource.--> Where can I see the information?
    2. In the OEPE, eclipse you can see the same in the "Reference" view of the OSB perspective.--> I'm using Java Developer right now, does it work?Thank you1. You can see the reference in: sbconsole -> Resource View -> Click on Proxy or any resource name -> it will show Ref: <n> some number and -> Click on the number. Do you see this?
    2. JDeveloper should also have a resource view, but have not tried it though

  • How to find the available parameters in Framework Page

    Hi All,
    I am new to OA Framework need some help. I need to find out the list of parameters for a Framework page. Once I know the available parameter then I can pass the value so that page rendering will be based on the parameter value.
    How to know the list of parameters. Are they available in a Table or XML file.
    Thanks for your help.

    Sorry I am not clear earlier. Here is my requirement:
    I am implementing iRecruitment product at a client site. Customer want to upload the available jobs on external site like (Dice.com). When a job seeker clicks on the available job 'Apply now' link the control is coming to iRecruitment main page but that particular job information is not displayed
    But the customer requirement is the URL attached to external job site should also contain the job id so that particular job information will be displayed when the control comes to iRecruitment product.
    So my idea is to find out if this job id parameter existed in the given page. If it existed then I can add the same to the URL in the browser page.
    Thanks

  • How to know the battery %

    tell me how to know the battery % by any software i try many but no use ....

    It would help if you told us what phone you have. Normally for a s60 or better phone, you can just use Nokia Battery Monitor from Ovi Store.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • I have one file ss_fpga.rbt,abcd.txt how to know the details of the file

    i have  one file  ss_fpga.rbt,abcd.txt how to know  the details  of the file  (when was the date created ,when was date modfied,owner) any function is there like   GetFileInfo

    Yes there is some, called stat(), look the links in your post in stack overflow, there is a lot of link in the anser.
    They talk about sys/stat.h a C header, witch contain the stat() function.
    stat() return a lot of things (size, changes, access etc) about files. look the "here" everywhere in the Yann anser, UP his anser and put the subject as resolved.
    Thanks,

  • HT5312 HOW TO KNOW THE SECURITY QUESTIONS ABOUT APPLE ID?

    HOW TO KNOW THE SECURITY QUESTIONS ABOUT APPLE ID?HOW TO KNOW THE SECURITY QUESTIONS ABOUT APPLE ID?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 on the page that you posted from should let you reset them : go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account, then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use
    For future info typing all in capitals is considered shouting and makes posts difficult to read, and may mean that people don't reply

  • How to know the mail send by outlook or owa ?

    how to know the mail send by outlook or owa ?
    Please click the Mark as Answer button if a post solves your problem!

    Hi Eric,
    I think there is no possible way to check if the mail is sent was from Outlook or OWA.
    Regards.
    Naren Neelam, Messaging Consultant, ITBigBang (P) Ltd Www.ITBigBang.Com | Hire Us for Messaging Consulting
    It actually is possible for an admin to tell if a message was sent from Outlook or OWA by looking at the MessageTracking and the information in
    SourceContext. MOMT is Outlook and the other two speaks for them self.
    Get-MessageTrackingLog -Start 2014-05-12 -Sender
    [email protected] -EventId submit | fl Sender,sourceContext
    Sender        :
    [email protected]
    SourceContext : MDB:995793b8-2c2c-4a14-b617-3e54371179ec, Mailbox:5e29199f-b877-46ed-b985-f2ede9bad293, Event:8351505, MessageClass:IPM.Note, CreationTime:2014-05-12T16:41:29.038Z, ClientType:MOMT
    Sender        :
    [email protected]
    SourceContext : MDB:995793b8-2c2c-4a14-b617-3e54371179ec, Mailbox:5e29199f-b877-46ed-b985-f2ede9bad293, Event:8351552,MessageClass:IPM.Note, CreationTime:2014-05-12T16:44:52.039Z, ClientType:OWA
    Sender        :
    [email protected]
    SourceContext : MDB:995793b8-2c2c-4a14-b617-3e54371179ec, Mailbox:5e29199f-b877-46ed-b985-f2ede9bad293, Event:8351611,MessageClass:IPM.Note, CreationTime:2014-05-12T16:46:25.772Z, ClientType:AirSync
    Martina Miskovic

  • HT3696 How to know if your mac is using the latest Haswell architecture processor or not? and how to know the difference between the new imac and the 2012/13 imac?

    How to know if your mac is using the latest Haswell architecture processor or not? and how to know the difference between the new imac and the 2012/13 imac?

    Sorry to reopen an old post, but I've just purchased a 2nd hand late-2013 iMac (or so thats what the seller said).
    I'm always sceptical though, and just wanted to know if there is a way to check if my iMac is indeed the late-2013 model that included Haswell?
    I've attached screenshots of the About This Mac section hoping it may help shed some light.
    Thank you in advance for your help!
    PS - I can't compare to the iMac specs link you posted above because its now showing the late-2014 models.
    <Image Edited by Host to Remove Serial Number>

Maybe you are looking for

  • How do I create multiple libraries & use with multiple ipods?

    Hi All, My wife and I have different tastes in music. Currently we use different user log ons to seperate our libraries. It's a complete pain because there's no other reason to use seperate log ons. We'll soon be upgrading to a new iMac and I'm wonde

  • How can I control the layout?

    There are some table and text data.When the page can't contain all table data,They can express in next page.but the following text info also express in next page.Then white space leaves.I want to control the display style,table\text\table\text......,

  • BR*TOOLS errors on distributed system

    Hello, I installed 2 hosts for a SAP Netweaver 7.01 system. HOST1 -> windows 2003 x64 is hosting database (Oracle 10.2.0.4 x64) HOST2 -> windows 2003 x64 is hosting instance 00 (Central services), Instance 01 (Central instance) and Instance 02 (Dialo

  • Stock transport order /stock in transit

    Hello For a stock Transport order scenario { Recieving Plant , Delivering plant } , the documented procedure is:- 1) stock transport order>Goods issue by delivering plant-- >stock in transit(valuated)   -- >Unrestricted/inquality/blocked/consumption

  • Error after process a Tabular model

    Hi, When I process a Tabular model, sometimes I have the next error "Error moving file '\\?\G:\filename.80.det.xml_TEMP_3804' to file '\\?\G:\filename.80.det.xml': ." I see in a XEvents trace that process finished ok and then throw the error. Does so