Newbie Question, OR statement for GET requests

I apologize but I am not sure what to google to get the information I need. Typing OR is google in useless :(.
Is there a way to use OR statements in HTTP requests? For example, I am making a call to a web service like this:
http://services.myintranet.net/program?xml=1&name=von+w
Is there a way to specify an alternative for name, like
http://services.myintranet.net/program?xml=1&name=von+wORKEYWORDname=w+von

If I understand you well: there is no predefined OR token in the query string the HTTP protocol would be aware of.
You have to choose the logical operator which is expected by the service processing your URL. This could be simply "OR" or the escaped sequence of "||" or even a blank - which would escape to "+" - when specified this way.
Search Engines as Google use the following:
http://...?as_q=client+server&... is to look for pages with words "client" and "server"
http://...?...&as_oq=client+server&... is to look for pages with words "client" or "server"
So the small "o" mkes the difference and is interpreted at server side.

Similar Messages

  • Question about statement for all entries

    Hi Abap experts,
    I have a question concerning the ABAP statement for all entries.
    Explanations:
    Let’s say that my source package (Source table) contains 2 types of data:
    -type1
    -type2
    I would like to use the statement select from table into internal table
    For all entries in source package
    But the where statement changes depending on the data type (2 keys when data type is 1 and only 1 key when data type is 2) .
    So that would be:
    Type1:
    Select fields
    From table into internal table
    Where field1 = source_package-field1
    And field2 = source_package-field2.
    Type2:
    Select fields
    From table into internal table
    Where field1 = source_package-field1
    How can I merge them assming that the field od data type is ftype?
    Thanks.
    Amine

    Hi amine,
    i think this is helpful for you.
    there are 2 ways  to use the for all entries...
    1. with header line:  this method is old one. in this method the internal table (ITAB) is automatically create workarea (WA) with same name, this method 1 drawback is there where we can use WA and ITAB confused that's why this is come difficult.
    2. without header line : this is nowadays we can use this method. in this method we create separate ITAb and WA. very clear this method.
    EXAMPLES:
    1.WITH HEADER LINE METHOD:
    PARAMETERS p_kunnr TYPE kna1-kunnr.
    DATA:it_kna1 LIKE kna1 OCCURS 0 WITH HEADER LINE,
          it_adrc LIKE adrc OCCURS 0 WITH HEADER LINE,
          it_adr2 LIKE adr2 OCCURS 0 WITH HEADER LINE,
          it_adr6 LIKE adr6 OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
       SELECT * FROM kna1 INTO TABLE it_kna1
          UP TO 100 ROWS.
       IF NOT it_kna1[] IS INITIAL.
         SELECT * FROM adrc INTO TABLE it_adrc
         FOR ALL ENTRIES IN it_kna1
         WHERE addrnumber = it_kna1-adrnr.
       ENDIF.
       IF NOT it_adrc[] IS INITIAL.
         SELECT * FROM adr2 INTO TABLE it_adr2
         FOR ALL ENTRIES IN it_adrc
         WHERE  addrnumber = it_adrc-addrnumber.
       ENDIF.
       IF NOT it_adr2[] IS INITIAL.
         SELECT * FROM adr6 INTO TABLE it_adr6
         FOR ALL ENTRIES IN it_adr2
         WHERE  addrnumber = it_adr2-addrnumber.
       ENDIF.
       LOOP AT it_kna1.
         READ TABLE it_adrc WITH KEY addrnumber = it_kna1-adrnr.
         IF sy-subrc = 0.
         ENDIF.
         READ TABLE it_adr2 WITH KEY addrnumber = it_kna1-adrnr.
         IF sy-subrc = 0.
         ENDIF.
         READ TABLE it_adr6 WITH KEY addrnumber = it_kna1-adrnr.
         IF sy-subrc = 0.
         ENDIF.
         WRITE : it_kna1-kunnr, it_kna1-name1, it_adrc-city1, it_adrc-street, it_adrc-po_box_reg,
                      it_adr2-telnr_long, it_adr6-smtp_addr.
       ENDLOOP.
    2. WITH OUT HEADER LINE:
    TABLES: KNA1 , ADRC.
    DATA : IT_KNA1 TYPE STANDARD TABLE OF KNA1,
            IT_ADRC TYPE STANDARD TABLE OF ADRC,
            WA_KNA1 TYPE KNA1,
            WA_ADRC TYPE ADRC.
    DATA: BEGIN OF STRTYPE ,
           CUSTMERNO LIKE KNA1-KUNNR,
           FIRSTNAME LIKE KNA1-NAME1,
           LASTNAME  TYPE NAME2,
           CITY TYPE ORT01,
           STATE TYPE REGIO,
           COUNTRY TYPE LAND1,
           ADDRESS LIKE ADRC-ADDRNUMBER,
           END OF STRTYPE.
    DATA : IT_1 LIKE TABLE OF STRTYPE.
    SELECT-OPTIONS  K_kunnr FOR kna1-kunnr NO-EXTENSION.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 WHERE KUNNR IN K_KUNNR.
    IF NOT IT_KNA1[] IS INITIAL.
    SELECT * FROM ADRC INTO WA_ADRC FOR ALL ENTRIES IN IT_KNA1 WHERE ADDRNUMBER = IT_KNA1-ADRNR.
    ENDSELECT.
    ENDIF.
    LOOP AT IT_KNA1 INTO WA_KNA1.
       READ TABLE IT_ADRC INTO WA_ADRC WITH KEY ADDRNUMBER = WA_KNA1-ADRNR.
       IF SY-SUBRC = 0.
           STRTYPE-ADDRESS = WA_ADRC-ADDRNUMBER.
       ENDIF.
    APPEND  STRTYPE TO IT_1.
       WRITE : / WA_KNA1-KUNNR, WA_KNA1-NAME1, WA_KNA1-NAME2, WA_KNA1-ORT01, WA_KNA1-REGIO, WA_KNA1-LAND1, WA_ADRC-ADDRNUMBER.
    ENDLOOP.
    regards,
    roopa.k

  • Newbie question : import statements

    So, i'm a complete java newbie trying to make his first swing application, a basic calc. I download NetBeans 6.5, install it, and begin to code. I quickly learn about the Matisse GUI editor, find it very easy to use, and in a couple hours, the work is done and runs very fine.
    But looking at my code, I realize I have forgotten all import statements (like import javax.swing, import java.awt.event ....), nevertheless the application runs fine. I suppose then that the Netbeans compiler automatically corrects my mistakes, but I want to do it right.
    So, I write the import statements explicitly in my code and I get a warning message : "import unused". After that, I find out about the "fix import" tool in Netbeans, use it and all my import statements disappear. I guess i'm missing something here.
    I thought import of swing classes were mandatory to write a swing application. I have NO import statement in my code, even if I'm using jFrames, jButtons, event handlers and the program works fine, why ?
    Would I be able to compile this importless code in another environment (let's say Eclipse or even javac) ?
    I'm using JDK 1.6 and Netbeans 6.5 with Windows XP.
    TIA

    glawen wrote:
    Ok, thanks for the answers, and sorry for my misinterpretation of BigDaddyLoveHandles's first post. I understand now, the import statements are useful only if you don't want to write full class names, and the generated code uses full class names so no import needed.Please also understand BigDaddyLoveHandles's latest post. If you learn to code Swing with NetBeans' Matisse, then you will be learning Matisse, not Swing. When it comes time to try to tweak or upgrade your program, you will be lost. Better is to learn Swing from the ground up by going through the Sun Swing tutorials. Though having said that, if you are very new to the language, better still is to learn the fundamentals of Java first before embarking in the murky waters of GUI programming. Best of luck to you in your endeavors.

  • Newbie Question: Best Option for First Baseline?

    I understand that in book design, it's important for the bottom line on the left-hand page to be in the same vertical position as the bottom line on the right-hand page. I've read that the way to do this is with Text Frame Options->Baseline Options->First Baseline Offset.  I see the following options there:
    Ascent
    Cap Height
    Leading
    x Height
    Fixed
    Are these options all equally preferable for book design?
    Thanks in advance to all for any thoughts or info.

    Good question.
    In my opinion (and there's 2 long shelves of books that I've designed
    over the past few years sitting in the bookcase behind me), the best
    choice is "fixed."
    The main reason is this: any of the other choices can lead to subtle,
    but significant misalignments -- and this can cause the page to be 1
    line short, depending on the text that appears on the top line of the page.
    Why? Because everything except "fixed" is dependent on the font that
    happens to appear on the top line. So clearly, if you happen to have a
    larger font in the middle of the book text (not just subheads -- perhaps
    for some reason one word, or even one letter, is enlarged somewhere in
    the book; or, if you've chosen "leading", then the leading might be
    different for one character), and that letter happens to fall at the top
    of the text frame, all the text on that page will not be aligning to the
    baseline.
    So let's say you fix that for the one page. But then there's a late edit
    -- and that top line gets bumped to the second line on the page. Now
    everything on that page is badly adjusted again, and the page has to be
    fixed.
    You might say, How often, in a regular book, is there a larger word in
    the middle of a line? So here we come to the most insidious problem with
    the other settings: italics.
    Believe it or not, the x-height of an italic font is not necessarily
    identical to the x-height of the companion roman font. It can be
    slightly taller than the roman, even on well designed pro fonts. This is
    a design decision of the font maker.
    So, if you've aligned everything perfectly to the baseline grid, and set
    your text frame first baseline option to "x-height", and you've made
    sure that the depth of your text frame is a perfect multiple of your
    baseline grid, what can happen is this: The first word on the page is
    italics. So all the lines are imperceptibly shifted down a fraction
    below the baseline grid. Therefore, the LAST line on the page will be
    bumped off the page because there won't be quite enough room there, and
    the result is that your page is one line short! And good luck finding
    the cause of that (it took me ages first time because I never imagined
    that the italics x-height was taller than the roman)! (Of course, now
    I've told you the secret!)
    And once again, if you have a late edit to make, you'll have to check
    the entire book to see that no pages are inadvertently short.
    And if you decide to be clever, and make the text frame (or margins)
    just that little bit deeper to accommodate the necessary extra space for
    italics at the top of the page, it will mean that your footnotes (if
    there are any) won't be aligning perfectly to a regular line of text on
    the facing page (admittedly by an almost negligible amount).
    So what are the cons? Why not use "fixed"?
    The biggest reason against that I know of is that for some reason, using
    "fixed" disables the option of keeping any paragraph rules within the
    text frame. Keeping a rule (or line) within the text frame can be a
    useful way of making some text start lower down on the page (if you use
    an invisible white rule). With "fixed", for some reason, this option is
    unavailable.
    Another reason against is that with "fixed", if an inline graphic
    happens to fall at the top of the page, it will often end up floating
    above the text frame.
    But for books without graphics (and even with), I would recommend
    "fixed" as the best, most predictable option.
    Ariel

  • Newbie question - Is it worth getting into SAP ?

    Seeing as this is still the only forum where a "Post New Thread" button is locatable, here's my opening question.
    I understand it takes study, certification and some years of experience to become a sought-after commodity in SAP.
    As an underpaid (never above $A40K) and under-employed IT worker over the past ten years, I've noticed that every time a SAP job is advertised, the salary is quite impressive. The most recent position, for a SAP Consultant, offered $A120K.
    To those of you who have been SAPping for a few years :
    Are you and your skills in demand in the job marketplace ?
    Do you receive reasonable or high pay ?
    What combination of study and experience (and connections ?) did it take to reach your current position ?
    For someone with broad IT experience, do you consider SAP worth getting into and, if so, by what route do you recommend entry ?
    That'll do for a start

    hi andrew,
    Are you and your skills in demand in the job marketplace ?
    Yes, SAP is hot these days, and will be for some years to come.
    Do you receive reasonable or high pay ?
    When compared to other fields and technical domains, the answer is yes.
    What combination of study and experience (and connections ?) did it take to reach your current position ?
    You need to have reasonable amount of IT exposure (which you have....!!!!) and a working expeirence in the functional domain is a must to rise. Technical expertise would boost your career great guns. Though after 2- 4 years in SAP , it is preferable to be a functional guy.
    For someone with broad IT experience, do you consider SAP worth getting into and, if so, by what route do you recommend entry ?
    Yes, it depends upon your type of IT experience. IF you have a good functional experience (say in domains like manufacturing, sales, or finance) pick up  a functional module study hard go for certification, and you are there in SAP world.
    With technical expertise you  need to have good ABAP knowledge, and with netweaver these days JAVA would also do, but with SAP having abap knowledge always helps.
    Same route here, study hard and go for certification and gian hands on experience.....and you are there to rock...!!!!
    Hope this answers your questions, Do reward

  • A newb question - How do I get iTunes to stop DELETING things from my iPod?

    I just got my PC back up and running, went to use my brand new iPod that was loaded with music/movie/podcasts from my laptop, I install iTunes on the PC, get everything set to my account and then take a look at my iPod only to find EVERYTHING has just been deleted.
    So far I hate iTunes and I truly hate the fact that I cannot just drag and drop files onto my iPod.
    Is there a way to lock files so they do not get deleted? Now all the stuff I have purchased cannot be downloaded again, another stupid idea. Once I pay for something I should be able to download it to the same iPod as often as I need.
    What truly ***** is I am a technogeek and have been an IT person for a long time, just when I think I understand how this software works, BAM it deletes all the files on my iPod.
    Is there any other decent software out there that I can use besides iTunes?
    I think you get the idea, I am frustrated and I know it is something simple that I am missing or overlooking. I guess I have to go buy iTunes for Dummies huh
    Any help or information that anyone can offer would be wonderful.
    Thanks,
    John W
    Custom   Windows XP Pro   First Gen iMac

    thanks
    I will still look for a different program.
    The other programs (like Anapod) are all Windows Explorer based and thus only work decently on very small music collections (e.g., less than 500 tracks or so). If you have a substantial collection, these schemes quickly become more trouble than they are worth because you must track everything manually or indirectly.
    My library is medium sized at 17,500 tracks (still under 75GB, just barely) and I could never manage it without a database like iTunes. If I had a large collection this advice would go double.

  • Newbie question - how to I get movie trailers off internet

    My wife and I are having an Oscar awards party. We thought it would be neat to send out DVD invitations with each of the nominated Best Picture movie trailers. I found several locations with the trailers but have no idea how to save them to my computer. I think I know how to get them onto the DVD when I get the video files on to my computer, but it's the first step I'm clueless about. In the old Windows world (just bought a Mac), I could "right click" on the video source and save to computer. Can I do something similar here in the mac world?

    SirScabs,
    If you right/click or control/click on the movie link or file you will get a choice to download the linked file to the desktop. If it is in Quicktime format there are no problems, but if it is in WMV (Windows Movie) format you will have to convert the file. You will also find the quality will be very poor as the files on the internet are very small, so they are not really reproducable on DVD. As for the copyright issue. It probably is a breech, but as long as you don't send one to any Hollywood executives you should be OK.

  • Newbie Question -- Simultaneous Execution for Labview/DAQ

    Hey, I am an undergrad student who is fairly new to labview and control systems and I am working on a senior project. I am wanting to use labview to simultaneously control two separate machines. Both machines would send back data to be saved to a file. They would both be connected to a NI DAQ(SC-2345). Is this reasonably attainable? Will labview and/or the DAQ have problems running two machines simultaneously? I would love any suggestions. Thanks

    Let me see if I have your setup pictured correctly.  You have 1 PC, 1 DAQ card that is connected to the SC-2345 signal conditioning carrier.  Do those modules, you have two different physical machines you want to control.  Am I correct?
    Do you want to have one LabVIEW application controlling both machines independently?  Or two different LabVIEW applications each controlling one machine?
    Your one constraint is that since there is only one DAQ card, all DAQ functions have to be handled at a single point of code otherwise you'll get errors about resource conflicts.  In other words, you can't have two separate programs eaching trying to work with a single DAQ card.
    So you can have a single point of interface with the DAQ card and use architectures such as Producer/Consumer to pass messages back and forth from your other parts of the code.  The other parts of the code can be two independent loops that handle the machine control logic for each machine.
    The easiest to program would be to have on application that handles both machines.  It would have 3 loops, two loops where each loop is for logic for each machine, and one loop that handles the DAQ communication.
    If you want to have two separate applications, you can do that as well where each application handles the machine logic and a third background application handles the DAQ communication.  It just needs a little bit more sophisticated communication scheme to pass data between the different applications.

  • My firewall is questioning Plugin Container for Firefox, requesting access to the net. Is this legit?

    using ZoneAlarm. It is questioning plugin-container.exe, ver.1.9.2.4, created 6/22/2010.
    == This happened ==
    Every time Firefox opened
    == after updating to 3.6.4

    The plugin-container.exe is a helper to separate out the plugin memory usage and crashes into a separate process from taking down firefox. If you read the release notes you'd know that.
    Since plugin's need to access the internet, they need to get through the firewall. Its right, let it through.

  • Newb Question: Creating overlays for an image

    I'm new to flash and am stuck on a project I'm working. Any
    help would be greatly appreciated.
    Essentially I'm trying to create a webpage with an image of a
    piece of furniture on one side of the page. On the other side
    I'm trying to create some digital swatches to represent a
    type of material that part of the furniture can have as an option.
    What I'd like to do is set it up so that people can click on
    the digital swatch and have the furniture image change so that
    they can see what it would look like with that option.
    Thanks in advance for any assistance.

    Hi ,
    I am working on IndesignCS2 as a third party developer . I have overrided Drag-Drop functionality ( while working with
    Document ) in my plugin. The problem is now I want to apply same functionality to Master Document with slight differece .
    Can you tell me how to identify Master page programatically ,So that I can differentiate these both cases programatically .
    I'll be greatful to you if you could help me.
    Thank You.
    Regards
    Vijay Choudhari

  • Bug in Presentation services - using cookies for GET requests

    Hi,
    I am implementing OBIEE bridge to integrate report in to 3rd party web applications.
    I am creating page using the following syntax:
    *string pageId = htmlViewService.startPage(new StartPageParams() { dontUseHttpCookies = true }, sessionId);*
    Even though its clearly stated not to use Cookies, my guess is that below request is failing because it is expecting cookies:
    http://localhost/Bridge?RedirectURL=saw.dll%2fuicomponents/common/common.xml?fmapId=KqIJCw
    returns with the response
    OBIPSNotLoggedIn
    I have tried to inject all headers and all cookies in the request, but its not helping. Can someone help me in this?
    I will really appreciate any help.
    Thanks!

    Irrespective of building EVALUATE expression (using constant only) in the RPD BMM logical column or just in Answers there are some rules:
    1. RPD/Answers
    If you want to query just EVALUATE expression without some other column then this is must do (example):
    Column1:
    case when 1=2 then PRODUCTS.PROD_CATEGORY else EVALUATE('TO_CHAR(%1)' as char, 100) end
    Evaluate is using only constant. We place presentation attribute inside the case to make navigator to handle this request.
    2. Answers
    You can use only EVALUATE('TO_CHAR(%1)' as char, 100) in the Answers column expression but only in combination with another presentation attribute, cannot have only EVALUATE('TO_CHAR(%1)' as char, 100) in the request.
    Column1: PRODUCTS.PROD_CATEGORY
    Column2: EVALUATE('TO_CHAR(%1)' as char, 100)
    Regards
    Goran
    http://108obiee.blogspot.com

  • How to send parameters for POST request in AJAX?

    hi friends,
    I am sunil. I am working on ajax.
    My problem is how to send post parameters in AJAX.
    For GET request. I am using bleow and it is workin fine.
    var url = "GetCurrencyRateController?currid="+CurrId+"&lncurrid="+LnCurrID;
    For POST Requert i am sending as
    var url = "GetCurrencyRateController";
    req.send("currid="+CurrId+",lncurrid="+LnCurrID);
    but it is not working

    Check out the Apache HttpClient package and look for how to use the MultipartPostMethod.
    Here is some sample code:
                HttpClient client = new HttpClient();
                MultipartPostMethod filePost = new MultipartPostMethod("http://localhost:8080/MyApp/Push");
                filePost.addParameter("subName", sub.subName);
                filePost.addParameter("serverName", sub.getServerName());
                File file = new File("C:/dataFile.zip");
                filePost.addParameter(file.getName(), file);
                int code = client.executeMethod(filePost);

  • How can I change the state for normal. All I get is a question mark.

    I can't change the normal state for my site. The button for color of text for the normal state is a question mark. Is there a way to reset this?

    Thanks. I am trying to change the appearance of a hyperlink on a web page. Specifically, I want to change the default text color from blue to another color. I can change the color for the other states of the hyperlink (rollover, etc.) but the attempt to change the normal state of the hyperlink is unsuccessful because the color box for that state is a question mark. Bill

  • How does Firefox handle xml:base when generating GET requests for SVG image elements?

    I am loading an SVG image at the following URL:
    http://localhost/howl/svg/id/543
    The source for this SVG code is:
    <svg xml:base="/howl/">
    <svg width="535" height="325" xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">
    <image xlink:href="file/id/532" />
    </svg>
    </svg>
    As you can see, the SVG code is located at one path, but the <image> is relative to the root, hence the wrapping xml:base attribute.
    The actual requests in Firefox, according to Tomcat Logging are:
    GET /howl/svg/id/543
    GET /howl/file/id/532
    However, Firebug's Net tab shows these requests:
    GET /howl/svg/id/543
    GET /howl/svg/id/file/id/532 (Incorrect, doesn't happen)
    GET /howl/file/id/532
    When I test the same thing in Safari and Chrome, all three GET requests actually happen, the incorrect one resolving in a 404.
    I suspect that Firefox is generating all three requests, but discarding the incorrect one and Firebug is not aware of this. As a result, Firebug shows all three requests, but the incorrect one never resolves.
    So, I'm curious about the behavior or whether I am doing this incorrectly.
    Thanks!

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Publishing iCal: getting error "is not a valid location for this request"

    I am trying to publish an iCal calendar to my own website via my iSP. My isp says they are already WebDAV so I don't need to turn it on. I have also gone over my url with them repeatedly to make sure I am entering it correctly. And still, I am getting an error that publish failed because it is not a valid location for the request.
    Any advice welcome...

    Ignore this question. My webhost who has insisted for the past 45 minutes they ARE WebDAV enabled, actually aren't!

Maybe you are looking for

  • Not able to get font style for some fonts

    Hi, I am getting font style(like regular, bold, italic etc) like this- while (count < fontCount) {//loop , which iterate throgh used fonts.                                                   ATE::IFont currentFont = fontRefArray.Item(count);          

  • Default Subinventory/Locator for item during Shipping Transaction-Any API

    Hi, If we need to define a Default subinventory or locator for an item during Shipping Transanction, we are setting it up from Application as follows: Inventory --> Setup --> Item Transaction Defaults window Can we define the same setup using any und

  • Transport Error while transporting ID TR (Target Business System not found)

    Hi Gurus, We are facing a issue with transports while transporting a ID transport to Prod from QA.(We are using CTS+) Its our first transport to PROD and we have checked the configuration for BC Application Server in Administration ->Content Maintena

  • Text file is sent empty through mail.

    Hello, I have the output from BART piped to a text file, let's called it "report". Whenever I try mail [email protected] < report I get an empty email. If I send any other text file like that, I get the file content no problems. Any ideas?

  • How do I start with Jaxb ?

    Hi I'd like to start using Jaxb with JRE 1.3.1. Which .jars do I need ? Where can I download them ? Cheers