Post Data to ASP page

Hi,
I'm trying without success to write an AS3 script to post data to a server ASP page (which is scripted in ASP to insert the data into a DB. The ASP script does not return any data to Flash.). It is set up so that it only receives data and does not send any data back.
I've written a script which follows, but I get back a trace of "error" (see script), and when I independently check the DB, no new data that I am trying to send, is received. So, not working.
storeBtn.addEventListener(MouseEvent.CLICK,dbStore,false,0,true);
function dbStore(event:MouseEvent):void{
var g2:String;
if (selectGm == true){
g2 = "abc";
if (selectGf == true){
g2 = "xyz";
var scriptPage6:String ="https://mysite.com/ASPpage.asp";
var request6:URLRequest = new URLRequest(scriptPage6);
request6.method = URLRequestMethod.POST;
var variables6:URLVariables = new URLVariables();
variables6.aaa = data88;
variables6.bbb = data99;
variables6.name = name6;//carried over in the script from text input in an earlier frame: var name6:String = username_txt.text;
variables6.ggg = g2;
var loader6:URLLoader = new URLLoader();
loader6.dataFormat = URLLoaderDataFormat.VARIABLES;
loader6.addEventListener(Event.COMPLETE, handleComplete6);
loader6.load(request6);
//request6.data = variables6;
var msg:String;
function handleComplete6 (event:Event):void{
var msg = event.target.data;
if(msg=="true"){
trace("Done!");
} else{
trace("Error: "+msg);
I must be doing something wrong and would appreciate any help. I'm not sure how to send data when no return data is needed or requested?
The goal is simply to send 4 items to the ASP page (aaa, bbb, name and ggg) which can process and insert these into a DB.
Regards,

Hi esdebon,
Thank you. The script executes OK. No error, traces OK.
But, I am still not geting any new data into the DB.
This is most likely a mistake I am still making with the variables I am sending. I've used this ASP page before and it works. So, I will check what I am sending.
Hi kglad,
I am trying to adapt another script that I am using in the same FLA, but that script does get a return of data. So, I renamed it from variables to variables6, to give it a unique (non-conflicting name), and in my experimenting to try tofind what would work, I probably commented it out.
Is it needed?
One other way to deal with the data, if the DB will not work:
SMTP Mail from the SWF/APK, using ASP, that sends the data to me.

Similar Messages

  • HttpConnection.POST to an ASP page

    First - I'm new to J2ME & I'm a novice to java in general. I'm an ASP programmer & I need to write an app for a nextel phone in J2ME.
    I have written a test application that just sends an http request to my asp page and the page should send back the appropriate response to be displayed on the phone, however the asp page does not seem to be receiving the data. However it IS sending back a response. I have tried removing flush() from the dataOutputStream, but that didn't fix the problem. Here is the code inside my MIDlet:
    private void loginViaHTTPConnection(String strLogin) throws IOException {
    HttpConnection hconn = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer data = new StringBuffer();
    try {
    hconn = (HttpConnection)Connector.open(url);
    hconn.setRequestMethod(HttpConnection.POST);
    hconn.setRequestProperty("IF-Modified-Since",
    "20 Jan 2001 16:19:14 GMT");
    hconn.setRequestProperty("User-Agent",
    "Profile/MIDP-2.0 Configuration/CLDC-1.0");
    hconn.setRequestProperty("Content-Language", "en-CA");
    os = hconn.openOutputStream();
    // send request to the ASP script
    String str = "PIN=" + strLogin;
    byte postmsg[] = str.getBytes();
    for(int i=0;i < postmsg.length;i++) {
    os.write(postmsg);
    //os.flush();
    //receive response
    is = hconn.openDataInputStream();
    int ch;
    while((ch = is.read()) != -1) {
    data.append((char) ch);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(hconn != null) {
    hconn.close();
    resultItem.setText(data.toString());
    display.setCurrent(resultScreen);
    The ASP code is:
    <%
    PIN = request("PIN")
    If PIN = "" Then
    response.write "INVALID"
    Else
    response.write "GOOD"
    End If
    %>
    The response returned is always "INVALID" no matter what I pass it.
    Any help would be greatly appreciated.

    deepspace
    Thank you, Thank you, Thank you!!!
    That worked like a charm.
    Working Code in case anyone's interested:
    private void loginViaHTTPConnection(String strLogin) throws IOException {
            HttpConnection hconn = null;
            InputStream is = null;
            OutputStream os = null;
            StringBuffer data = new StringBuffer();
            try {
                String str = "PIN=" + strLogin + '\r';
                hconn = (HttpConnection)Connector.open(url);
                hconn.setRequestProperty("IF-Modified-Since",
                        "20 Jan 2001 16:19:14 GMT");
                hconn.setRequestProperty("User-Agent",
                        "Profile/MIDP-2.0 Configuration/CLDC-1.0");
                hconn.setRequestProperty("Content-Language", "en-CA");
                hconn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");          
                hconn.setRequestMethod(HttpConnection.POST);
                // Send request to ASP page
                os = hconn.openOutputStream();
                os.write(str.getBytes());
                os.flush();
                //receive response
                is = hconn.openDataInputStream();
                int ch;
                while((ch = is.read()) != -1) {
                    data.append((char) ch);
            } finally {
                if(is!= null) {
                    is.close();
                if(os != null) {
                    os.close();
                if(hconn != null) {
                    hconn.close();
            resultItem.setText(data.toString());
            display.setCurrent(resultScreen);
        }

  • POST DATA TO ASP

    Please help me to send post data.
    I can send data to asp but i dont know how to send file atachment to asp web page.
    any help wellcome
    <form name="frmSend" method="POST" enctype="multipart/form-data" action="uploadForm.asp" onSubmit="return onSubmitForm();">
    <tr>
    <td><p> <b> Attach Your Previous Work: </b> </p>
    <p> <b>bbbbbbbbbbbbbbbbbb</b></p><p> (yyyyyyyyyyyyy) </p>
    Attach File: <input name="attach1" type="file" size=35><br>
    </td>
    </tr>
    <tr>
    <td width=100% align=right>
    <input type="Hidden" name=Uid value=16156>
    <input type ="Submit" value="Attach" id=Submit name=Submit> </td></tr>
    </form>
    </table>
    Message was edited by:
    samaraweera

    Read the HTTP/1.1 specs.
    Here's a hint - try learning for yourself by reading these things we call them books. Can you say that - B-O-O-K.
    To upload a file, is basically no different then any other form field data. You send your response with the field name "attach1=" and the data.
    Example:
    POST /uploadForm.asp HTTP/1.1
    formField1=something
    formField2=else
    attach1=5v75xc75xc75bx4bbn84x74bnx5n6mb756m4b975xb4mb5vm4
    5b4m5bvm45b6m468mmmmmmmmmm4c564v64c684mc4m4m684v
    8795c95675cxb6795xc967b5n67cb45x5c4xc6b3xc3848cb3nx8cn384m

  • Moving Dynamic data from asp page to word doc

    I am trying to acquire data from a user using an asp page,
    then when the user is done entering his/her data, the submit button
    is pressed and the data will go to a formatted word doc or a pdf
    file. I am using dreamweaver version 8.0. Is there a quick way to
    do this? Does dreamweaver need an addin to be able to this or is
    there code that can be used to do this?

    It is not DW that needs the addon but the server that the
    site is running
    on. There are quite a number of components for writing
    documents or PDF's. I
    would check with you host if they have any available.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "mmflynn" <[email protected]> wrote in
    message
    news:et75ps$8gr$[email protected]..
    >I am trying to acquire data from a user using an asp
    page, then when the
    >user
    > is done entering his/her data, the submit button is
    pressed and the data
    > will
    > go to a formatted word doc or a pdf file. I am using
    dreamweaver version
    > 8.0.
    > Is there a quick way to do this? Does dreamweaver need
    an addin to be
    > able to
    > this or is there code that can be used to do this?
    >

  • CFGRID posting data to action page

    Is there a way to get an HTML CFGRID to post all its rows to
    an action page rather than just the selected row?

    Sheilia : Read this blog for Ben. Hope will help.
    http://www.forta.com/blog/index.cfm/2007/6/25/ColdFusion-Ajax-Tutorial-6-Editable-Data-Gri ds
    aaronmartinez : I believe there is away to do that, have ever
    tried to apply same example for JAVA GRID in CF documentation to
    CFGRID HTML?

  • How to Post Data to Web Page

    I want to maintain a list on one of the pages on my website.
    How can that be done in iWeb? a spreadsheet, a text file? Would I ftp it, open iWeb every time and edit and repost?
    Any suggestions would be appreciated
    Thanks

    Dean wrote:
    Any suggestions would be appreciated
    Dean ~ Perhaps use a Google Gadget that you paste into iWeb's HTML Snippet window — then you can update the list directly in a web browser, rather than having to republish your site or re-upload a particular file. I haven't actually tried this first one as it requires that you register with them. And, assuming it's a working product ( ! ), perhaps you'll need to log in before you can update your list via a web browser:
    http://www.listaculous.com
    And this next one doesn't require log in, but the data doesn't appear to persist — so not too useful!:
    _Really Simple List_
    More useful & useless Google gadgets may be found by searching HERE. And this:
    http://tadalist.com
    ...was found by doing THIS.

  • IDOC - XI - post HTTP on .ASP?& DATA_CONTENT

    HI ALL !
    I have this scenario :
    1) R3 send IDOC ORDERS01 to XI (3.0) 
    2) XI elabs IDOC fields (in mapping step)
    3) XI with HTTP Adapter post data to a "page".asp on webserver using querystring (like page.asp?&ID_CUSTOMER=123&ORD_DOC=WE ...etc..)
    My ASP page use this stantments for get values:
    ID_CUSTOMER = Request.Form("ID_CUSTOMER");
    ORD_DOC = Request.Form("ORD_DOC");
    xml_content = Request.Form("xml_content");
    At the moment XI call the page but the query string is empty ! I think that the message type of interface will be automatically added on URL (as when flags Additional Query on Comm.Channel - Sender Party, Sender Service... are selected).... it's wrong ?!? If yes how it's possible complete the flow ?!
    Thks !!

    Hi Jari,
    Thanks for the reply,
    I have the asp file as below and plz suggest for any changes,
    <%
    Function BinToText(varBinData, intDataSizeInBytes)
                Const adFldLong = 128 '&H00000080
                Const adVarChar = 129
                Set objRS = Server.CreateObject("ADODB.Recordset")
                objRS.Fields.Append "txt", adVarChar, intDataSizeInBytes, adFldLong
                objRS.Open
                objRS.AddNew
                objRS.Fields("txt").AppendChunk varBinData
                BinToText = objRS("txt").Value
                objRS.Close
                Set objRS = Nothing
    End Function
    server.scripttimeout = 600
    dim binXML, strXML, outXML, objFundsDelete
    'if Request.TotalBytes > 0 then
    '           binXML=Request.BinaryRead(Request.TotalBytes)
    '           strXML=BinToText(binXML,lenb(binXML))
    'else
    '           strXML=""
    'end if
    strxml = Request("xmlData")
    'Response.ContentType="TEXT/XML"
    'Response.Write(strXML)
       'dim fs, LogFile
       'logFile = "c:\received.xml"
       'set fs = server.CreateObject("Scripting.FilesystemObject")
       'on error resume next
       'if fs.FileExists(LogFile) = false then
       '  set ts = fs.CreateTextFile(LogFile)
       'end if 
       'set ts = fs.OpenTextFile(LogFile,2)
       'ts.writeline strXML
       'ts.close
       'set fs = nothing
       'set ts = nothing
    set objFundsDelete=server.CreateObject("FundsDelete.CFundsTransfer")
    outXML=objFundsDelete.FundsProcess(strXML)
    set objFundsDelete=nothing
    Response.ContentType="TEXT/XML"
    Response.Write(outXML)
    %>
    Thanks,
    srini

  • POST data without navigating to page

    Hi,
    I need to POST some data collected in a form to an ASP page
    hosted by another person.
    How do I do this without navigating to that ASP page, so I
    can remain within my own website ?
    Thanks for the help,
    M

    You could have some code like:
    Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
    objXML.open "POST", "mysite.com/foo.asp", False
    objXML.SetRequestHeader "Content-Type",
    "application/x-www-form-urlencoded"
    objXML.send(Request.Form)
    Resp = objXML.responsetext
    Set objXML = Nothing
    Jules
    http://www.charon.co.uk/charoncart
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004

  • Merge pdf form data to an ASP page via HTTP

    I am using Adobe LiveCycle.
    Using LiveCycle has anyone been able to collect data from a PDF form posted on their web page, submit via submit button, that data to an ASP page and use the ASP page to do record manipulation.
    I have successfully created a PDF page and collected the data with JavaScript and updated the database. I'm looking for an alternative solution.

    Hi Robert,
    I am trying to design form to interact with an ODBC.
    Do you have any working example that uses following methods?
    xfa.sourceSet.DataConnection1.addNew();
    xfa.sourceSet.DataConnection1.update();
    xfa.sourceSet.DataConnection1.delete();

  • To display posting date in alv top of page area for transaction KOB1

    I want to display posting date given on selection screen of transaction KOB1 to the alv top of page area on final alv output .
    what are the possible solutions ?

    I want to display posting date given on selection screen of transaction KOB1 to the alv top of page area on final alv output .
    what are the possible solutions ?

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • Send data from flash to a popup ASP page

    how can I send data from a flash webpage to an ASP page which
    has to open in a popup window.
    I can do them both seperatly, but how to integrate those 2 in
    1....
    Here's my script...

    I'm not sure if this will work, so you'll have to forgive me
    if I'm way off here. I use php for all my server-side goodness. I
    recently was doing sort of the same thing, but what I did to solve
    it was this (oversimplified of course)...
    variableSTRING =
    "?variableA=valueONE&variableB=valueTWO";
    getURL("javascript:popup('
    http://test.php"+variableSTRING+"
    ','myPopUp',800,600)");
    does that help?

  • Send data to asp w/out opening new page

    I'm a Director developer learning Flash. So much is the same,
    so much is different! Anyway, I have a SWF in a web page that uses
    an XMLConnection component to get XML from ASP. I use the
    XMLConnection as the dataProvider for a two Trees. I have a button
    that lets users associate elements from each tree, and the
    requisite data is sent to another ASP page via getURL() so it can
    be stored in a database. All this works fine, but I don't want a
    new page to open, as it does with the "_blank" getURL() window
    argument, and I don't want the current page to change to the ASP
    results(nothing) as it does with "_top", "_parent", "_self" or no
    argument. I've tried using the send() method of a LoadVars object,
    but have the same problem with it. I'm thinking of an in-elegant
    workaround by setting the URL property of another XMLConnetion to
    the ASP page I need to call and then calling trigger(). The
    XMLConnetion component will end up not getting any data back from
    the ASP page but the page should still do the SQL command and
    update the database I think. Is there another function or object
    I’m unaware of that’ll let me do this in a more proper
    way? Thanx in advance for your suggestions.

    LoadVars.send() was opening a new window? That's strange.
    I've had problems with LoadVars.send() and know there used to be
    bugs with it, so I've always used LoadVars. sendAndLoad, and just
    ignore the return. You have to specify a return LoadVars object(or
    it won't always work) but you don't have to anything with it, of
    course.

  • How do I create an update form, in a search.asp page.

    I have a search.asp page which when submitted transfers to
    the results.asp page. In the search I would like to also create an
    insert statement. The search.asp page has the following.
    Form: searchForm (Post)
    Text Field: KeywordSearch
    List Menu: CategoryTable
    List Menu: Location
    Button: Search
    When a client enters data in the search.asp page, I would
    like for the data, to be submitted to a database at the same time
    it searches the database. This using an insert statement. The
    reason for this is so that we can see what everyone is searching
    for.
    The database/table we created has the following.
    Table: tblSearches
    Field: idSearch (Auto Number)
    Field: location (Text)
    Field: category (Text)
    Field: user (Text)
    Field: keyWord (Text)
    At the moment I cant create an insert form because of the
    form that already exists in the search.asp page.
    Can anyone suggest how to do this.
    Ideally it would be good to be able to combine two forms into
    one, but I am told that this is not possible.
    TA
    Mally.

    Oh, I see. So is it Dreamweaver that wont let you create the
    insert statement using a form that is already submitting to a
    results.asp page? So if I create the insert statement by had it
    should work?

  • Calling the ASP page through a BSP application

    Hi,
    We are in the process of implementing Digital signature for SRM cFolders.
    BSP application : CFX_RFC_UI
    Pages with flow logic : doc_de_download
    The digitally signed files are uploaded to the cFolders.On click of a
    particular file in cFolders, the 'ASP' page residing on the server in IIS
    vertual directory i.e. 'verifyfile.asp' should get called.This ASP page has
    the logic to verify the signed file.
    The signed file resides on the file system in the same vertual directory.
    As a result we want to post a message on the screen which
    will be the output of the ASP page logic.
    Please suggest the way to achieve this.
    Regards,
    Nilesh
    Message : ---
    <b>Verification Successful</b>
      Certificate Details
    The certificate is valid
    CRL Status: Certificate Revocation Status is Unknown: CRL Not checked
    Email Id: [email protected]
    Issuer Name: ock Demo Certification Authority
    Serial Number: 15 65 7a 0a  00 00 0d d9
    Subject Name: Email Address = [email protected] | Country = US
    | StateOrProvince = VA | Locality = McLean | Organization = Technologies Corporation | Organizational Unit = ock Demo | Common Name = Valid ock |
    ThumbPrint: 16 00 c1 f4 76 aa 57 f2 20 27 0f 21 44 9e 08 9d 61 ca dd 95
    Valid From: Monday, April 10 2006,02:19:58
    <i><b>The code in OnInitialization event handler is as follows :----</b></i>
    * doc_de_download.htm
    DATA lp_root_exception   TYPE REF TO cx_root.
    DATA lp_doc              TYPE REF TO cl_cfx_document.
    DATA l_cur_ver_id        TYPE guid_32.
    DATA lp_col_app          TYPE REF TO cl_cfx_col_application.
    DATA lp_col              TYPE REF TO cl_cfx_collaboration.
    DATA : icontent type table of  sdokcntbin.
    data :  w_tmpcontent TYPE sdokcntbin.
    **** Data declaration
    data : g_folder_path TYPE btcxpgpar value 'usrsapDigitally signed files',
          g_md(100)      TYPE c,
          g_file_path    TYPE string,
          g_system       TYPE rfcdisplay-rfchost,
          g_os           TYPE sxpgcolist-opsystem,
          g_file_size    TYPE string,
          g_mime_type    TYPE string,
          g_file_ext     TYPE string,
          g_len1         TYPE i,
          g_var          TYPE c,
          g_out_file     TYPE c LENGTH 600,
          g_file_count   TYPE p,
          g_table_lines  TYPE p,
          g_counter      TYPE p VALUE 1,
          g_flag         TYPE c.
    DATA : i_doc_id TYPE sysuuid_c.
    CONSTANTS : c_dot TYPE c VALUE '.'.
    TRY.
        IF NOT p_refresh IS INITIAL.
          cl_cfx_ui_application=>delete_instance( ).
        ENDIF.
        TRANSLATE p_col_id TO UPPER CASE. "Just in case...
        TRANSLATE p_area_id TO UPPER CASE. "Just in case...
        TRANSLATE p_topic_id TO UPPER CASE. "Just in case...
        TRANSLATE p_doc_id TO UPPER CASE. "Just in case...
        TRANSLATE p_ver_id TO UPPER CASE. "Just in case...
        TRANSLATE p_save TO UPPER CASE. "Just in case...
    *   initialize in case of server state timeout
        IF ( NOT p_col_id IS INITIAL ) AND
           ( NOT p_area_id IS INITIAL ) AND
           ( NOT p_topic_id IS INITIAL ).
          CALL METHOD cl_cfx_context_ui=>initialize
            EXPORTING
              i_col_id      = p_col_id
              i_area_id     = p_area_id
              i_topic_id    = p_topic_id
              i_doc_id      = p_doc_id
              i_object_type = cfxf1_sc_doc_type_document.
        ENDIF.
        IF NOT p_col_id IS INITIAL.
          lp_col_app = cl_cfx_col_application=>get_instance( ).
          lp_col = lp_col_app->get_collaboration( p_col_id ).
        ENDIF.
    *   Do we need to prepare to checkout this document?
        cl_cfx_doc_ui=>get_docref_safe(
          EXPORTING
            i_guid        = p_doc_id
          IMPORTING
            ep_docref     = lp_doc ).
        IF ( NOT p_filepath IS INITIAL ) AND ( p_do_lock = 'X' ).
          l_cur_ver_id = lp_doc->if_cfx_versioning~get_current_version( ).
          IF l_cur_ver_id = p_ver_id.
    *       OK, prepare checkout
            TRY.
                lp_doc->if_cfx_document~lock( ).
              CATCH cx_root.
            ENDTRY.
          ENDIF.
        ENDIF.
    data: lt_formfields type TIHTTPNVP,
          l_formfield   type IHTTPNVP,
          l_request     type STRING.
    data: lt_headerfields type TIHTTPNVP,
          l_headerfield   type IHTTPNVP.
    CALL METHOD request->get_form_fields
      CHANGING
        fields = lt_formfields.
    CALL METHOD request->get_header_fields
      CHANGING
        fields = lt_headerfields.
    *    CALL METHOD cl_cfx_doc_ui=>retrieve_content
    *      EXPORTING
    *        ip_navigation = navigation
    *        ip_response   = response
    *        ip_runtime    = runtime
    *        i_col_id      = p_col_id
    *        i_area_id     = p_area_id
    *        i_topic_id    = p_topic_id
    *        i_doc_id      = p_doc_id
    *        i_ver_id      = p_ver_id
    *        i_save        = p_save.
    *   Do we need to checkout this document?
        cl_cfx_doc_ui=>get_docref_safe(
          EXPORTING
            i_guid        = p_doc_id
          IMPORTING
            ep_docref     = lp_doc ).
        IF ( NOT p_filepath IS INITIAL ) AND ( p_do_lock = 'X' ).
    *      l_cur_ver_id = lp_doc->if_cfx_versioning~get_current_version( ).
          IF l_cur_ver_id = p_ver_id.
    *       OK, do checkout
            TRY.
                CALL METHOD cl_cfx_doc_ui=>mark_doc_as_checked_out
                  EXPORTING
                    ip_doc     = lp_doc
                    i_filepath = p_filepath.
              CATCH cx_root.
            ENDTRY.
          ENDIF.
        ENDIF.
    i_doc_id = p_ver_id.
    CALL FUNCTION 'CFX_API_DOC_DOCUMENT_READ'
    Exporting
        i_doc_version_id = i_doc_id
      IMPORTING
        e_file_path      = g_file_path
        e_file_size      = g_file_size
        e_mime_type      = g_mime_type
        e_file_ext       = g_file_ext
      TABLES
        et_content       = icontent.
    ******  Download document
    IF NOT icontent[] IS INITIAL.
    ***  PERFORM sub_download_file USING g_file_path.
      CONCATENATE g_folder_path g_file_path
      INTO g_out_file.
      OPEN DATASET g_out_file FOR OUTPUT IN BINARY MODE.
      IF sy-subrc = 0.
        LOOP AT icontent INTO w_tmpcontent.
          TRANSFER w_tmpcontent TO g_out_file.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET g_out_file.
      CLEAR g_out_file.
    ENDIF.
        CLEAR: p_area_id, p_col_id, p_doc_id, p_save,
               p_topic_id, p_ver_id, p_filepath.
    ** handle other standard exceptions
      CATCH cx_root INTO lp_root_exception.
        CALL METHOD cl_cfx_exception_ui=>handle
          EXPORTING
            ip_exception  = lp_root_exception
            ip_navigation = navigation.
    ENDTRY.

    Hi,
    Something like this should work:
    REPORT  zggar_http_client.
    PARAMETERS: p_host  TYPE char100 DEFAULT 'http://www.google.fr',
                p_port  TYPE char20.
    DATA: wcl_client TYPE REF TO if_http_client.
    DATA: w_content    TYPE string,
          w_host       TYPE string,
          w_port       TYPE string,
          w_proxy_host TYPE string,
          w_proxy_port TYPE string,
          w_path       TYPE string.
    w_host = p_host.
    w_port = p_port.
    CALL METHOD cl_http_client=>create
      EXPORTING
        host          = w_host
        service       = w_port
        proxy_host    = w_proxy_host
        proxy_service = w_proxy_port
      IMPORTING
        client        = wcl_client.
    wcl_client->request->set_header_field( name  = '~request_uri'
                                       value = w_path ).        "#EC *
    wcl_client->request->set_header_field( name  = '~request_method'
                                       value = 'GET' ).         "#EC *
    * send and receive
    wcl_client->send( ).
    wcl_client->receive( ).
    * display content
    w_content = wcl_client->response->get_cdata( ).
    Best regards,
    Guillaume

Maybe you are looking for