Custom Headers with LrHttp.post?

I am using custom HTTP headers in my application and this works
great with LrHttp.get. However, LR doesn't send anything when I try to do this with LrHttp.post.
My code looks like the following:
            local customHdrs = {
                { field="XXX", value="yyy" }
            local data, hdrs = LrHttp.get(url, customHdrs)
            data, hdrs = LrHttp.post(url, xxx, customHdrs)
Any ideas? Has anyone used custom HTTP headers with post before?
Thanks!

Hi,
I've used standard headers with LrHttp.postMultipart, but not custom headers with LrHttp.post.  Could you try using LrHttp.postMultipart instead to see if it has any more luck for you than LrHttp.post?
Also have you tried using something like Fiddler2 to intercept the HTTP traffic and confirm whether or not the headers were sent with the request?
Matt

Similar Messages

  • Custom PC with ATI 5670 xfx is not working with APPLE cinema 24"

    I need help using my apple cinema 24"
    my setup is the following:
    i7 custom built with ati 5670 xfx (with display port)
    running windows 7 64 bit ultimate
    I bought a displayPort to mini-display port cable. When I plug everything in, my apple 24" cinema is not turning on ?
    can someone please help me out, Thank you.
    PS. Seem like people are saying the new ATI radeon 5000 series is not compatible with apple 24" Anybody has a solution to this ? Thank you.

    Hi,
    I already reply you in fredtorrey post.
    But if you don't want change that card you will need buy atlona adaptor.

  • Background FI Posting with clearing, posting key control, etc - How?

    I have the requirement to post FI documents with clearing, with defined posting keys, where some of the fields come from file, some of them defaulted. It should happen in the background.
    I used BAPI BAPI_ACC_DOCUMENT_POST. I had the posting key problem, however with Badi ACC_DOCUMENT using EXTENSION2 I managed to generate the FI docs with the right posting keys.
    Now I have problem with clearing. It seems with this BAPI it's not possible to trigger clearing.
    I found some threads about FM 'POSTING_INTERFACE_CLEARING', however I don't think I can have any influence on the posting key and generated line items. So it doesn't help to me.
    FM BAPI_PAYM_ITEM_POST_CLEARING is for payments.
    Using program RFBIBL00 would be difficult, as far as I can see it can only use file in the specific format as an input.
    I should read my file and generate another file and call this program. This wouldn't be really the best approach.
    In this moment the only solution I can think of is transaction recorder/call transaction approach. Unfortunately this solution would be really release-customizing dependent and not performance-optimized.
    Any other idea?
    Thanks in advance,
    Peter

    Hi Rob,
    Thanks for your answer.
    In one of the sap standard batch program I found FM FI_PSO_DOC_DIRECT_INPUT. I'll give a try, it might help also.
    Best regards,
    Peter

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • [svn] 931: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 931
    Author: [email protected]
    Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - we need automated tests for this basic case.
    Doc: No
    Checkintests: Pass
    Details: RequestFilter was not handling multiple headers with the same name properly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • Can we pass values to custom headers through HTTP bindings in BPEL?

    hi,
    I have an urgent requirement where I have to pass values to custom headers of HTTP url through HTTP bindings in bPEL.
    Is it possible? Say I have a http url http://localhost:80/test.
    I need to post xml over the above HTTP url as well pass some values to the Custom Headers Variables.
    Can I achieve this functionality thorugh BPEL or not?

    Hi,
    My requirement is exactly the same as yours, can you please let me know what did you do to overcome the Oracle Forms Default change password screen.
    Regards,
    Praveen

  • Using a custom tag with a 2.3 servlet descriptor BUG?

    Hi,
    I just developed a Custom Tag and I'd like to use in my jsps.
    If I add the jsp in my JDev project with the custom tag when I try to build the project I got this error:
    Error(11): oracle.xml.parser.v2.XMLParseException: Invalid element 'listener' in content of 'web-app', expected elements '[context-param, servlet, servlet-mapping, session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
    It seems like when the jsp parser encounters the line with taglib it tries to parse the web.xml against a 2.2 version of the dtd. My web.xml begins with the correct dtd version (2.3). Can anyone tell me if this is a bug and eventually tell me how to solve it?
    thanks,
    Giovanni

    I repost this issue again, now with a simple test case.
    If I wrote a simple custom tag:
    import java.io.IOException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class MyCustomTag extends TagSupport {
    public int doStartTag() {
    try {
    pageContext.getOut().print("FOO");
    } catch (IOException ioe) {
    pageContext.getServletContext().log(ioe.getMessage(),ioe);
    return(SKIP_BODY);
    with the associated tld:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.2</jspversion>
    <shortname>try</shortname>
    <uri>try</uri>
    <info>A short description...</info>
    <tag>
    <name>mytag</name>
    <tagclass>MyCustomTag</tagclass>
    <bodycontent>EMPTY</bodycontent>
    </tag>
    </taglib>
    and a jsp using the custom tag:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <H2>
    The current time is:
    </H2>
    <P>
    <% out.println((new java.util.Date()).toString()); %>
    <%@ taglib uri="try.tld" prefix="try" %>
    <try:mytag />
    </P>
    </BODY>
    </HTML>
    all runs fine if I have a web.xml with the dtd version 2.2
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    but if I use the version 2.3 because I want filters,context listeners and so on:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <filter>
    <filter-name>FilterRedirector</filter-name>
    <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
    </filter>
    <!-- Filter Redirector URL mapping -->
    <filter-mapping>
    <filter-name>FilterRedirector</filter-name>
    <url-pattern>/FilterRedirector/</url-pattern>
    </filter-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    I get the error I report in my last post. (the jsp doesn't compile) If I remove the custom tag from my jsp all works fine (filters, listeners,etc). In my project settings I use the 2.3 version of servlet.jar instead of the ServletRuntime that comes with JDeveloper.
    Can anyone tell me how to resolve this issue (Using simple custom tag with a web application using the 2.3 servlet specs)?
    Thanks in advance,
    Giovanni
    If I remove the filter secion all

  • Mouse focus in custom DataGrid ItemRenderer (re-post*)

    * I already posted this question in the "Flex" forum, but didn't get any replies. I'm not sure if this will yield any different results, but I figure it's worth a try...
    I have a custom MXDataGridItemRenderer with a custom nested Spark CheckBox component that I'm trying to use within an MXDataGrid component. The renderer works fine, as does the nested checkbox, however I'm unable to decouple the mouse events for the checkbox from the DataGrid row. I intend to use the DataGrid as a playlist for the VideoPlayer component with an FX Model-based DataProvider and the purpose of the checkbox is to allow the user to automatically play the next selected checkbox item in the list; similar to the checkboxes in iTunes. Placing an instance of the checkbox on top of DataGrid achieves the desired decoupling, but this is obviously an impractical solution, which I include only to illustrate what I'm trying to do. Any recommendations would be greatly appreciated.
    Thanks,
    ~Benny

    Work around posted here: http://forums.adobe.com/message/3160303#3160303

  • How to reconcile customer balances with control accounts

    Hi!
    Sanjay Here,
    1. how to reconcile the customer balances  pl. explain in details.
    2. how to reconcile the customer balance with control accounts
    3. how to do the automatic clearing through T code f.13. pl. give us the screen shots if available.
    4. how to reset the T-code f.32 clearing documents, if wrongly showing in customer balance.

    1. how to reconcile the customer balances pl. explain in details &
    2. how to reconcile the customer balance with control accounts
    Ans:- Thru report painter T-code FGI4 (Form) & Report FGI1 using cutomer summary table we can define report, which shall give the desired requirement. It give customer wise & controll account wise balances.
    3. how to do the automatic clearing through T code f.13. pl. give us the screen shots if available
    Ans. F.13 is used for GL automatic clearing basing on the required config for GL . Like GR/IR clearing is there in automatic posting we have to define COA, GL & creteria1, creteria2 ..... Incase of GR/IR field name can be VBUND (Purchase order). When configure this in F.13 when we check the check box GR/IR and GL system shall look for setting for automatic clearing based on creteria it shall automatically clear.
    4. how to reset the T-code f.32 clearing documents, if wrongly showing in customer balance
    Ans. To reset a claerinf document Tcode is FBRA. Reset the clearing doc first and reverse the doc Tcode FB08.
    Thanks
    Colin Thomas

  • Customs duties should not post to inventory

    I am facing one problem.
    Client requirement is while importing a  material, customs duties should not post to inventory but it should go to expenses account.
    i.e.JCDB condition type(BCD) should not add to material cost. scenario is for manufacturing industries.
    As of know out of 7 conditions 3 are going to inventory value.
    Please let me know any configuration as to do or any user exits are available.
    Please do the needful.
    Regards
    Raghu

    Hi,
    If customs duties to be captured in separate G/L, select JCDB condition type (BCD)
    in M/06 ,go details , select delivery cost(B) in condition category in control data- 1 segment & select accrual flag in control data 2 TAB & save. Assign an account key & an accrual key FR3 for JCDB condition type in calculation schema in M/08.
    In OBYC t.code, assign accrual key FR3 with your custom G/L.
    Now do GR and see the accounting entries of custom G/L not added to inventory account.
    Regards,
    Biju K

  • BizTalk 2010 - WCF-Custom Adapter with sqlbinding - rror was encountered while attempting to transmit the message

    BizTalk 2010 RTM version with SQL 2008 R2 .
    An intermittent issue with the WCF-Custom adapter with sqlbinding, calling a SQL stored proc as below
    Message gets suspended in BT Admin console  with "An internal server error was encountered while attempting to transmit the message" .
    Event log shows 
    A message sent to adapter "WCF-Custom" on send port "xxx" with URI "mssql://server/db?" is suspended.  Error details: Unknown Error Description 
    Any advice please. Thanks
    Sullu.
    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks

    Hi Chen
    Is there any update on this please ?
    I have applied the latest CU and have noticed the following issue.
    BizTalk 2010 Enterprise Edition with BizTalk 2010 CU6 and CU3 for BizTalk Adapter Pack works fine , no issues noticed.
    However ,
    On a DEV VM ,BizTalk 2010 Developer Edition with BizTalk 2010 CU6 and CU3 for BizTalk Adapter Pack still gives the error mentioned in this post.
    In addition Microsoft BizTalk Adapter Pack ,Microsoft BizTalk Adapter Pack(x64) & WCF LOB Adapter SDK are also installed .
    Below is the Error message.
    Message gets suspended in BT Admin console  with "An internal server error was encountered while attempting to transmit
    the message" .
    A message sent to adapter "WCF-Custom" on send port "xxx" with URI "mssql://server/db?" is
    suspended.  Error details:
    Unknown Error Description 
    Could you please check and advice what needs to be done to resolve this ? Thanks .
    Regards,
    Sullu
    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks

  • How to cancel LrHttp.post calls

    Hi,
    I'm working on an export/publish service.  Before the uploading happens, there is some interaction with the remote application.  In general, whenever I launch an call I'd like to provide some feedback to the user that it's doing something and give them the option of canceling.  Currently, I have a LrTasks.startAsyncTask which leads into LrFunctionContext.callWithContext and then a LrDialogs.showModalProgressDialog.  After the dialog box comes up, the function drops into an LrHttp.post call.  I'm trying to figure out how if there is a way to connect the isCanceled property of the progressScope to the ability to cancel the LrHttp.post call.  (Currently, the only thing I can think of is to write a byte feeding and have it suddenly stop feeding bits. Any thoughts?
    -Scott Selberg

    The postBody parameter of LrHTTP.post() can be a function that returns the data to be sent in chunks.  You could have that function check a "cancelled" flag and return nil if the flag is set.  The behavior is not well specified and it's not clear what will happen if the function returns nil before it has returned the number of bytes specified by the totalBytes parameter -- does the HTTP POST get aborted?  If it doesn't get aborted, you could have the server side check to ensure that the number of bytes received in the body matches the Content-Length header (assuming that LrHTTP adds such a header). 

  • BizTalk WCF-WebHttp Custom Headers per message

    Hi,
    I have a requirement to connect to a service using the WCF-WebHTTP adapter that requires add custom http Header "X-Auth: <Value varies for messageType>" per message.
    So am using dynamic Request-Response port to set HTTPHeaders dynamically per message. I am using following code to assign HttpHeaders in Message Assignment Shape.
    Msg_CogSrvReq(WCF.HttpHeaders)="X-Auth: "+<value that extracted from a another service>;
    However while testing these, am getting an error "X-Auth header not found in request" from the service.
    Why this HttpHeader not passing to the service while requesting? Is am missing anything?
    Thanks,
    Praveen
    Praveen

    Hi Praveen,
    I have seen this issue where when you try to set the HTTPHeader properties, the WCF-WebHTTP adapter
    ignores it and the outgoing message always goes without the custom HTTPHeader that’s been set in Orchestration.
    We had a similar situation like yours where I had to set a GUID as one of the properties in the HTTPHeader and needed to use WCF-WebHTTP
    adapter. Also if you use a static adapter and configure the properties, different GUIDs would not get generated per message instance, this is due to the way adapter initialize the message instances. So the only solution is to have dynamic GUID per message
    instance is using the dynamic port as you do.
    And for setting the dynamic HTTPHeader properties with WCF-WebHTTP adapter,
    I used a custom pipeline component with a code as below. Though you have the dynamic send port, your dynamic port need to have pipeline configured, in this case you can use a custom pipeline with a component in it will following code:
    public Microsoft.BizTalk.Message.Interop.IBaseMessage Execute(IPipelineContext pContext, Microsoft.BizTalk.Message.Interop.IBaseMessage pInMsg)
    pInMsg.Context.Write("HttpHeaders", "http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties", "X-Auth: "+<value that extracted from a another service>);
    return pInMsg;
    Check the following article in this context:
    http://www.codit.eu/blog/2013/04/30/using-httpheaders-with-wcf-webhttp-adapter-on-biztalk-2013/
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Integrating Custom page with Standard Page

    Hi
    My Doubt is,
    i m working on iRec Module.
    i m integrating Custom page with Standard Page , Is it will affect the Background running Workflow.
    Thanx

    Hi 781261,
    It seems you are familiar with OTN forums, based on your profile.
    165 posts, 50+ questions and 15 unresolved.
    I hope you know forum etiquettes(you can refer http://forums.oracle.com/forums/ann.jspa?annID=914).
    Close your previous threads if they are answered/you got out of the issue yourself.
    One of your unclosed threads is:
    Re: Can we Fire PPR on DFF?
    regards,
    Anand

  • Custom Headers in OSB

    Hi..Is there any way to obtain custom headers of the request in osb..
    Thanks,
    Sarat

    Take at look at these links :
    http://www.javamonamour.org/2010/04/osb-transport-headers.html
    http://osbjames.blogspot.com/2012/07/addingreceiving-custom-jms.html
    The second url is what you would need. The sample shows jms transport headers, but its the same approach for any other transport like http.
    Thanks,
    Patrick
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    https://forums.oracle.com/forums/ann.jspa?annID=893

Maybe you are looking for