Http_utl.text_write for http 'POST" does not work

i have a proc that uses utl_http code I have seen all over on web sites for 'POST'ing to a REST web service ..... i use utl_http.write_text to write data to the request body but no data gets written ...... below are the code segments I use
url entered directly into browser that **works fine**: http://www.media.com/admintool/Services.aspx?par_string=[{ "PAR_Transaction_Id" : 5566338, "MRI_Title_Name" : "4 Wheel & Off Road"}]
calling routine:
declare
l_url varchar2 (300) := 'http://www.media.com/admintool/Services.aspx';
l_data clob;
l_query varchar2(32767);
begin
dbms_output.enable(3000000);
l_data := '[{
"PAR_Transaction_Id" : 5566338,
"MRI_Title_Name" : "4 Wheel & Off Road"}]
http_util_pkg.http_post(
p_url_in => l_url, p_data_in => l_data);
end;
called routine segment:
l_http_req := utl_http.begin_request (p_url_in, 'POST');
-- Set the HTTP request headers
utl_http.set_header(l_http_req, 'User-Agent', 'Mozilla/4.0');
utl_http.set_header(l_http_req, 'content-type', p_data_type);
utl_http.set_header(l_http_req, 'content-length', v_length);
-- Write the data to the body of the HTTP request
utl_http.write_text(l_http_req, 'par_string=');
while v_index <= v_length
loop
utl_http.write_text(l_http_req, substr(p_data_in, v_index, 4000));
dbms_output.put_line ('data = ' || substr(p_data_in, v_index, 4000));
v_index := v_index + 4000;
end loop;
results .... you can see below that the header content length is non-zero but the response header says there is no content, so something is haywire with the write_text method
url = http://www.media.com/admintool/Services.aspx
length in data = 1271
http package; url = http://www.media.com/admintool/Services.aspx
after set authentication
after write headers
data = [{
"PAR_Transaction_Id" : 5566338,
"MRI_Title_Name" : "4 Wheel & Off Road"}]
after write text
status code: 200
reason phrase: OK
Connection: close
Date: Tue, 06 Apr 2010 03:59:27 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Length: 0 *************** response header says no content !!!
can you help me figure out what is wrong with the utl_http.write_text method ???
thank you

Please do not resurrect old threads - rather ask your question in a new thread. If need be, add a URL in your new thread posting that refers to the old thread. Also add as much relevant details as possible. Your Oracle version (all 4 digits). Your o/s. If possible, sample code and data that can be used as a test case. Complete error details. And what the intent of the code is (i.e. what the actual problem is that you're trying to solve).
As for HTTP post - works just fine as far as I've used it.

Similar Messages

  • Http post does not work in portlet

    Hi,
    I have a simple portlet that has a form using http post. When I submit the portal page just displays a blank page. And request parameter name is prefix by only "_pirefnull" :
    <INPUT TYPE="hidden" name="_pirefnull.param1" value="hello" />
    When I call this funtion:
    pReq.getRenderContext().getBackURL()
    it also returns null.
    Sample code is as follows:
    <form      name="frmPage"
                        action="<%=HttpPortletRendererUtil.htmlFormActionLink(pReq,PortletRendererUtil.PAGE_LINK)%>"
                        method="get" >
    <%=HttpPortletRendererUtil.htmlFormHiddenFields(pReq, PortletRendererUtil.PAGE_LINK) %>
    <input      type="hidden"
                        name="<%=HttpPortletRendererUtil.portletParameter(pReq, "next_page")%>"
                        value="htdocs/myportlet/Page2.jsp" />
    <input type="hidden" name="<%=HttpPortletRendererUtil.portletParameter(pReq, "param1")%>" value="hello"/>
    <input type="submit" name="btnSubmit" text="Submit"/>
    <input type="button" name="btnCancel" value="Return" onClick="javascript:window.location='<%=pReq.getRenderContext().getBackURL()%>'"/>
    </form>
    This works in my development portal. However, it doesn't work in the production portal.
    Is there any version of the portal that only works on HTTP get method? How do I solve this problem. Any information would be very much appreciated.
    Rachel

    Rachel,
    there doesn't seem to be any problem in your code. Though I'm a bit surprised with the null values that you seem to be getting. Could you condirm the folowing the for me:
    1. Are you hitting the JSP directly or is the request to render coming from Portal? If you hit it directly then things like PortletRenderRequest will be null.
    2. Could you find out what exactly is null - PorltletRenderRequest, RenderContext?
    3. Why are you using HTTP GET for form submission? Can't you use POST for this?
    4. Do you see any errors in your application.log file? Might be helpful for debugging.
    5. What are the versions of your dev and producttion portals? What's the JPDK version you using?
    Regards,
    Abhinav

  • [svn:fx-trunk] 7473: Fix for 'ant asdoc' does not work.

    Revision: 7473
    Author:   [email protected]
    Date:     2009-06-01 12:09:26 -0700 (Mon, 01 Jun 2009)
    Log Message:
    Fix for 'ant asdoc' does not work.
    It should now work from both svn and package zip.
    Bugs: SDK-15306
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15306
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml

  • Logfile monitoring for MSSQL ERRORLOG does not work with sapccmsr

    Hi
    We are running MSSQL2005 and wants to monitor the ERRORLOG for certain patterns, using the logfile monitoring feature of SAPCCMSR.
    We are using logfile monitoring with sapccmsr for a lot of other logfiles without problems, but for ERRORLOG is does not work!
    To be more precise: The agent does not report alerts for the text patterns specified. The agent runs fine and in RZ20 we can see that the logfile are checked every minute (but without finding the patterns).
    The strange thing is that:
    - It works for all other logfiles
    - If we do a "type ERRORLOG >> <new file>" and runs the same monitoring on this "copy" of the ERRORLOG then it works
    Any ideas?
    Best regards
    Tom Bo

    Hi,
    Please look at SAP note 1013331 https://service.sap.com/sap/support/notes/1013331.
    In special the changes after patch collection 2007/5.
    Practical you have to use a unicode CCMS Agent to monitor the ERRORLOG file of SQL2005, and add the "ENCODING=UTF-16" parameter in the template file....
    hope this helps..
    Regards
    Rolf

  • My dvd slot for imac10,1 does not work. It rejects the disc. Problem after reinstall of backup from hdd.

    My dvd slot for imac10,1 does not work. I had a new harddrive installed in November and the MacStore installed my backups from an external harddrive. I do not use it other than to upload programs, so I have not tried using it until tax season, but it rejects the disc. The ata file indicates no dvd firmware, but the serial-ata does indicate firmware for a dvdrw. What might I do about this to bring the dvd back, least expensive to most?

    Yesterday I started having the same problem. Can read disc (play movies and music) but blank disk are ejected or idvd cannot see the blank disk. I have a almost 12 month old 27" i7 imac.

  • Can't get to settings to turn on wifi because "sign in to icloud" pops up and asks for pw which does not work because i can't get to wifi  ?p

    can't get to settings to turn on wifi because "sign in to icloud" pops up and asks for pw which does not work because i can't get to wifi  ?

    The problem is I cannot turn on wireless setting.  The "sign in to icloud  -- enter appleid password" popup will not go away. when i enter the pw and click ok, the same balloon pops up again.  If I click "cancel" it pops again. Since I am not on the internet (because I cannot turn the ipad wireless on) the sign in to icloud obviously will not work.  Vicious circle.

  • What can I do for the following situation: I think my insert slot for the headphones does not work; when I put in any cable that should and can go in all I hear is low frequent static sounds.

    What can I do for the following situation: I think my insert slot for the headphones does not work; when I put in any cable that should and can go in all I hear is low frequent static sounds.

    You might try talking to the Apple store manager and see if you don't get more help...you might also contact Apple.com/support and see if they can give you a contact with the Apple Italy offices.
    Sounds like you have two levels of failure, the first shop that did the repair and broke a wire, and the second that has disabled something else and isn't helping.
    Apple officially refurbished equipment is usually good quality.  Surprising this has happened but you need to press on with complaints and try for resolution.

  • HT3702 how do I cancel an application that I am being billed for monthly that does not work

    How do I cancel an application that I am being billed for monthly that does not work anymore?

    How to report an issue with Your iTunes Store purchase
    iTunes Store: Purchasing and managing auto-renewing subscriptions

  • Roboform adapter even for latest Firefox does not work..

    I have tried all workaround given in this forum , but still roboform plugin does not work for latest version ( 24) does not work , it dsplay first time when you install FF , but next time it disappears. Any solution ?

    I have download roboform from here [http://www.roboform.com/ Roboform] and i have installed it on my laptop. at the end of installiation i see the roboform toolbar in firefox and it operates normally. try again See also [https://support.mozilla.org/it/questions/974226?esab=a&s=&r=8&as=s https://support.mozilla.org/it/questions/974226?esab=a&s=&r=8&as=s] You must remove your old toolbar before install the new version of roboform 7.9.2.5

  • Mapping Network Drive for external user does not work

    I want to map a beehiveonline.oracle.com network drive. I am using https://beehiveonline.oracle.com/content/dav/# as mentioned in the FAQ.
    Using https://beehiveonline.oracle.com/content/dav/ (without the #) does not work either.
    I am able to map this network drive when using [email protected] as user.
    However when trying to do this for the user [email protected] I am not able to map the drive.
    I am testing this in order to simulate the client to map the network drive.
    Logging on the beehiveonline with the user id [email protected] works fine.
    Your help will be greatly appreciated.

    Ah, We have had one other case of this where an account can access BeehiveOnline OK but cannot get the webDAV to work.
    I did notice a few login failuers stating your account did not exist on the system. This can sometimes happen if there is a conflict between username and loginid - I have set them to be the same and this may help.
    Try again and let me know how it goes.
    Phil

  • Quicktime plugin for screen capture does not work in flash player 11.2

    Hello,
                   I have created a quicktime plugin (it is .component file) for screen sharing purpose.
    I have used quicktime framework for that. plugin is detected in flash player.
    This plugin is working perfectly for flash player 11 and below.But,
    It does not working in latest flash player 11.2.
    I have seen following error on console -
    Google Chrome Helper EH[240:e92b] *** QTCaptureSession warning:
    Session received the following error while decompressing video:
    Error Domain=NSOSStatusErrorDomain Code=-8974
    "The operation couldn’t be completed. (OSStatus error -8974.)".
    Make sure that the formats of all video outputs are properly configured
    Note - Compression format used in plugin is kBMPCodecType.
    Please, help me.

    The issue ended up being the change in resolution to my external monitor. Flash was unable to detect the proper coordinates of the color I was trying to select because I was running my monitor in HD mode rather than selecting an actual resolution from my monitor preferences. Changing the settings to an acutal resolution, instead of generic "HD mode" fixed the issue.

  • F4 help on Parameter for ddic domain does not work

    Hello,
    I try:
    Parameters:  pa_waers TYPE WAERS.
    WAERS is a ddic data element for currencies and also a  domain with this name exists. The domain WAERS has a check table TCURC.
    When I press F4 for my field PA_WAERS in the Selection Screen, I assume a value help from the check table TCURC.
    I activated and re-generated my coding (as mentioned in the ABAP-Keyword help for "PARAMETERS") but it still does not work.
    Does anybody has a clue why this does this not work.
    The same thing is for a parameter:
    Parameters ..... type CTU_MODE.
    Domain CTU_MODE has value Fields (A, E, B) but also here on my program no F4 help occurs.
    Thanks in advance
    Stefan Berger

    A value table is assigned to a domain.  It becomes a check table when a foreign key relationship is established for a field in a table.  The field uses the data element and the data element uses the domain.
    For example, if you try:
    PARAMETERS: PA_WAERS TYPE EKKO-WAERS.
    You will get the F4 help you are looking for.  If you use tran SE11 and view EKKO, find field WAERS, use tab Entry Help/check and you will see that table TCURC has been established as a check table.  You can use the foreign key button to see the relationship that has been established between EKKO and TCURC.
    Also, domains cannot be used to type a field.  Your reference to CTU_MODE must be referring to a Data Element.  I tried this in a 4.7 system and the F4 works for me.  What version are you using?

  • Download link for PS CC does not work

    I am in the CC area, click on PS to download and the link does not work. Here is the link. Any ideas? Working on a Mac; browser is FireFox.
    Same issue occurs when trying to download AI from CC.
    aam://SAPCode=PHSP?productVersion=14.0?passPhrase=Qrm0F9IdGKvpaqBy+4xfM5lOVjrbpmIweKyRgE7A +BqIFujuZhd6TPbicQ26g2ENYDvavIaSUbhb9BXZi83+Angu3EOQc+ntLN6A+aQp/ewWvbhau5iP8ohOSLKpfNJlYT 4bEoGiRkVT1a3siLb7QGha/SK/mjCUPNQIynZDH7M=

    Hi maurak,
    Please use Creative cloud desktop app to download all CC Apps. You can download the CC desktop app from this link.
    https://creative.adobe.com/#products
    Regards,
    Abhijit

  • New Release QuickVPN client 1.4.0.5 for windows 7 does not work????

    New release of QuickVPN client version  1.4.0.5  for windows 7 is not working properly.
    We can not connect; instead we receive this message:
    "Remote Gateway is not responding, do you want to wait?"
    Dear Cisco,,,,
    Your release is not complete; please correct issue and advise after it has been tested.
    Rgds, EM

    Hi, first disable this POLSTORE.DLL again in your QuickVPN-Folder. Then start in this folder IPSEC.MSC and than IPSEC.EXE. You should get from IPSEC.EXE  the error above. If not, than any other problem you have. Follow all the hints here in this thread.
    If you get the same error above, than enable this POLSTORE.DLL again and start the IPSEC.EXE. You get the full info what has been gone. And within the IPSEC-Window for Local Computer you may find this FREESWAN-setting.
    B.t.w. before I went this way I did export and import the IPSEC-settings from the XP-machine, as it was hinted some posts earlyer. But the way I have gone, works also with manualy deleting the FREESWAN config. With the IPSEC.EXE it will new generated in any case.
    When you start via QuickVPN you may monitor also what happens within this IPSEC for Local Computer. Press F5 to keep it aktual.
    From time to time the connection gets only succeeded after the second and more times. I have a very slow UMTS Internet-Access.
    Juergen
    Adding: These effects, getting not connected, first and during the VPN-Tunnel exists, has not changed since the top-first Version of Quick-VPN.
    Dear customer, be patient, don't care about these stupid messages, click again or when the connection allready has succeeded through the VPN-tunnel do what you did like to do.
    ...... and again, with which configuration-scenario do the guys at Cisco test and develop .....
    Fortunately, I never was a Cisco partner, only a poor user ;)

  • CoreID Access: Passing obmygroups to HTTP-Headervariable does not work

    Hello,
    we want to pass the group membership of a user via headervariable to a web application. This works on a testing environment when configuring a action (headervar - HTTP_GRP - obmygroups) and the variables in the dads.conf (PlsqlCGIEnvironmentList HTTP_GRP).
    Now I configured the same on an other environment and there all variables gets filled to (like sn, cn, givenname...) but not the HTTP-GRP Variable. I have no idea why this does not work on the second environment. I tried to pass obuniqueid, and this works.
    How can I debug this problem? Does anybode has an idea what goes wrong?
    Regards
    hfr

    Hello,
    we want to pass the group membership of a user via headervariable to a web application. This works on a testing environment when configuring a action (headervar - HTTP_GRP - obmygroups) and the variables in the dads.conf (PlsqlCGIEnvironmentList HTTP_GRP).
    Now I configured the same on an other environment and there all variables gets filled to (like sn, cn, givenname...) but not the HTTP-GRP Variable. I have no idea why this does not work on the second environment. I tried to pass obuniqueid, and this works.
    How can I debug this problem? Does anybode has an idea what goes wrong?
    Regards
    hfr

Maybe you are looking for

  • Iphone 5 not working any more

    I cannot turn on my iphone5, does not seem to work anymore... but nothing happened to him! I recently moved it in Brazil, in Curitiba and there is no apple store in this city. Where should I go?or what should I do? I bought it from Verizon, last Octo

  • Issue with setting dynamic destinations on (Flex) RemoteObject

    When setting the AMFChannel on a RemoteObject I am seeing the following behavior using builds 3.2.0.3978 and 3.0.1.1755: faultCode:Client.Error.DeliveryInDoubt faultString:'error' faultDetail:'Invalid URL url: 'http://mymachine:8080/myService/message

  • FM for Batch where used list

    Hi , I want to link the Finished goods to Raw Material and vise versa. I want all the levels from the Raw Material to Finished goods . Do u have any FM where we can give the Material number and batch and get the where used list corresponding to MB56?

  • Exportiing to uncompressed AVI and getting no audio or video??

    When I choose Export > AVI. Options = No Compression on either the video or the sound. I get a 7gb file that opens and shows a running time of 0:00 and plays nothing in Quicktime. Any clues what I'm doing wrong here?

  • Cortana does not seems to work

    Click on the Search... As I speak through the microphone, Cortana didn't work at all.