How to make HTTP call to encoded URL?

Hi expert,
I need to make an HTTP call to this url submitted by
<form action='http://www.ncbi.nlm.nih.gov/BLAST/Blast.cgi' enctype="application/x-www-form-urlencoded" method="POST" NAME="FormatForm" TARGET="Blast_Results_for_25530"><script src="../../../blastcgi.js"></script>
if i use the action url in the form tag, it does not work. it looks like it is encoded by the enctype=.... is it possible to connect to this url? thanks.

Do the first POST to Blast.cgi, with URL encoded parameters.
Get the Refresh header from the response.
Split the Refresh header into wait_time and next_url (find the ; and take two substrings)
currentThread.wait(wait_time * 1000);
next_url.openConnection().connect();
Either you'll get your response, or you'll be told to wait longer (I don't know the details of Blast.cgi, you might need to loop).

Similar Messages

  • How to make a call  to service from site studio templates?

    Hi,
    May be this is very basic but I am not able to figure out how to make a call to a service from site studio templates (hcsp). I have seen one example of service call in the dynamic list fragment. It makes a call to SS_GET_SEARCH_RESULTS service using executeService() method. But it doesn't take any parameters and also not very how returned results are captured.
    I want to execute WCM_PLACEHOLDER service. It takes 2 main parameters dataFileDocName and templateDocName. The returned result is typically a html response.
    The service typically is executed using http request and the url would be something like this
    http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&dataFileDocName=VIRTUSAINC&templateDocName=DETAILS_REGION_TEMPLATE
    I think SS_GET_SEARCH_RESULTS service works in the similar fashion. I want to execute WCM_PLACEHOLDER service too using executeService() method. How to work with this? How can we pass parameters and capture returned results?
    Regards,
    Pratap

    Hey Pratap,
    If you are on a standard Site Studio template (page or subtemplate) you should be able to call the wcmPlaceholder idoc function directly. In fact calling the idoc function provides a lot more functionality then the service call (they locked down a few things in the service call since it is designed to be called from an external application).
    The idoc call would look something like: <!--$wcmPlaceholder("Sales", "placeholderDefinitionDocName=placedef_salescontact")--> (taken from page 208 in this doc: http://download.oracle.com/docs/cd/E10316_01/SiteStudio/10gr4/Pdf/Site_Studio_10gR4_Designer_Guide.pdf)
    As a general note when you are in idoc script and want to execute a service you call <$executeService()$> as you saw in the dynamic list. The parameters that the service runs on are in the data binder of the current request. To set parameters for an execute service you simply set idoc variables on the page before it. Example:
    <!--$QueryText="dDocType <matches> `Document`" -->
    <!--$executeService("GET_SEARCH_RESULTS")-->
    As for the response when you execute an idoc function, like wcmPlaceholder, that returns a String the response is immediately output to the page in the location you called the function. This would be similar in concept to a jsp scriptlet that outputs a string <%=myResponseString%>
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_ECM >
    Edited by: Andy Weaver on Jul 7, 2010 7:59 AM
    Added response detail.

  • How to make utf-8 default encoding firefox 4.0

    how to make utf-8 default encoding firefox 4.0

    The default encoding that you set in Firefox/Tools > Options > Content is only used if a server doesn't send an encoding via the HTTP response header and if there is also no meta tag or other indication in the file.

  • How to make system call to execute command line in JAVA?

    Hi,
    I am new in JAVA. How to make system call to execute the following command line in JAVA in LINUX environment.
    rpm -qa jdkIn C programming, use as such:
    system ("rpm -qa jdk");
    How about JAVA?
    Thanks.

    Runtime.getRuntime().exec. But first read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to make Conference Call in Xperia Z1

    How to make conference call in Xperia Z1. First of all I am not sure whether that facility is available in Z1. 

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I suggest that you take a look at the following link for further instructions about how to place conference calls:
    http://userguide.sonymobile.com/referrer.php?region=gb&product=xperia-z1#Conference-calls.html
    Note that this function needs to be enabled at your subscription from your operator in order to make it work.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • I have 3G sim card how to make reugular call in ipad air 4G. tell me.

    i have 3G sim Card how to make regular call in ipad iar 4G. tell me.

    You have to use an app such as Skype or Viber. iPad has no
    telephone capability as sim is data only.

  • How to make video calls on i phone 4s

    how to make video calls on i phone 4s

    kalidag
    Currently Being Moderated  Re: how to make video calls on i phone 4s
    Jan 30, 2012 1:35 AM (in response to wjosten)
    but we can make video call using our SIM network.. it charge morethan a voice call.I am looking for that on my i phone
    Dear cheonweb,
    The person asking about  3G video cal with out using GPRS(cellular network data plan or wifi) by using cellular network data plan it is possible but with out using cellular network data plan we cant make 3G video cal in apple phones.

  • How to make CSD call in NOKIA E71

    Hello,
    I bought two Nokia E71 mobiles with BSNL 3G connection. My service provider(BSNL) providing 3G service. E71 is connected to PC there i dialed to another phone which is conneted to other PC. when i dialed from hyperterminal in winxp by using ATD commnad with out semicolon. I am getting connection error messge on my phone. NO CARRIER on hyper terminal.
    I don't know what the problem is i tried with all commands no use. Is there any setting required for NOKIA E71. How to make data call (CSD call) by using Nokia E71.
    You help is very much appreciated..
    -Vijender

    Hi
    this may or may not be of help.
    I was having a similar problem with a 6230i.
    When trying to make a data call  the No Carrier signal would come back.
    After some research I changed +cbst form 0,0,1 to 7,0,1
    at+cbst=7
    This apparently gives the receiving modem more time to connect. It sends the no carrier signal 30 seconds later after appearing to connect, I still dont get the connect 9600 response.

  • How to make Database calls without directly htting the DB Listener?

    Hi
    I have a frontend end (code sitting on user's PC) application that needs to call the database, say, to look up table data and populate a JTable.
    So, I make a call directly to the database, on the default 1521 (yes, it's Oracle!) and get my data. However, I have other server side java code connecting with my application over a Java socket. (sending messages back and forth).
    So, I've got two ports open, 3041 (arbitrary ) for the Java socket and 1521 for the DB.
    I want to close 1521 and move the sql statements to the server.
    I can't work out a way to do this effectively. At the moment, I'm sending a message through 3041 to tell the server side code to perform a DB call. Then the database returns the info and I send a message back to the client PC with the data.
    It makes the DB call asynchronous (good or bad thing?), since I have a listener on the client waiting for messages from the server.
    It all looks a bit messy....ie sending messages and waiting for replies just for a DB call.
    Is there a standard practice for my problem that I can use?
    Thanks

    Your script won't work.
    #Renamed the variable so that it's less confusing.
    $webUrl = "http://spsite"
    #There's no point getting the SPSite object if you only want/need the SPWeb object.
    #$spSite = Get-SPSite -Identity $mySiteUrl
    #$spWeb = $spSite.OpenWeb()
    $spWeb = Get-SPWeb $webUrl
    #You've copied this from an example that uses a subsite which has the documents. That's not a great approach and probably not valid for yours
    #$cvDocumentLibrary = $spWeb.GetList("subsite/Documents")
    $library = $spWeb.Lists["ListName"]
    #Here you are referencing '$lib' which hasn't been declared. PowerShell will be completely ignorant of what on earth that is and will throw a null reference exception
    # $item = $lib.Items | where {$_.Name -eq "Report.docx"}
    #This still isn't perfect as it's slow and won't work on lists that are over the throttling limit but it'll work most of the time.
    $item = $library.Items | where {$_.Name -eq "Report.docx"}
    $item.Delete()
    You need to slow down and check things.
    $webUrl = "http://spsite"
    $spWeb = Get-SPWeb $webUrlWrite-Host "The URL of the website is: " $SPWeb.URL
    $library = $spWeb.Lists["ListName"]
    Write-Host "The Library title is: " $Library.Title$item = $library.Items | where {$_.Name -eq "Report.docx"}
    Write-Host "Deleting item named: " $item.Name$item.Delete()
    In that version it should print out some lines as it processes which will confirm that you've found the web, list and item before it does anything.
    If you hit errors post up the EXACT code you're using, change the URLs a little bit if you want but try to only replace words rather than missing out whole chunks.

  • How to make a call in Javascript to export a Report Element - The content of a cell

        Hi everyone,
    I  have a very simple question :
    How can I make a call to the API in order to export a single cell in the WEBI report in .CSV using httpRequest ?
    Thanks in advance,
    Rogerio

    hello,
    You can try the URL:
    [GET] <url>/documents/{documentId}/reports/{reportId}/elements/{elementId}
    ... with text/csv as Accept-Type and a trailing reference or datapath.
    Examples
    <url>/documents/7610/reports/1/elements/13?datapath=DP1.DObc:"2004",DP1.DOa6:"Austin"
    <url>/documents/7610/reports/1/elements/13?reference=1.D.7
    Regards,
    eric festinger

  • How to make a call in j2me using bluetooth?

    Hi All,
    I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one person can speak while the other hears ?I wanted to know that can we do a full duplex communication also so that both of them can speak as well as listen at a time.
    Thanks

    To make a call using javax.microedition.midlet.MIDlet.platformRequest().
    for eg:
    String telNo = "tel:+9682651761543";
    platformRequest(telNo );

  • How to make a call in j2me using bluetooth technology?

    Hi All,
    I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one person can speak while the other hears ?I wanted to know that can we do a full duplex communication also so that both of them can speak as well as listen at a time.
    Thanks

    To make a call using javax.microedition.midlet.MIDlet.platformRequest().
    for eg:
    String telNo = "tel:+9682651761543";
    platformRequest(telNo );

  • How to make a call in J2ME MIDLET

    How to activate a call in J2ME ?
    Eg. On click of an icon a call should be made to a predifined number in the app.

    To make a call using javax.microedition.midlet.MIDlet.platformRequest().
    for eg:
    String telNo = "tel:+9682651761543";
    platformRequest(telNo );

  • How to make a call from a Web page

    How can I make a call from a number on a Web page ?
    If I select the number, I can only copy it ... then I cannot cut and paste into the phone dialing section ???
    I thought that by selecting the number on the Web page and holding it this would trigger the dialing ... like I used to do with my 9900 Bold BB.

    Are you holding the number or just pressing it quickly? Holding anything will produce a menu whose options would include cut & paste but just pressing the number should activate an action, in this case dialing the number.
    Try just pressing the number with a normal press and not holding it and post back with your results.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to make HTTP connection between a midlet and a php server?

    As the title above, can anyone share how to make a HTTP connection between those 2? J2ME and PHP. Thanks a lot!

    Can you be a little more specific on what you really want.
    When i started doing j2me application, i was required to be able to comunicate to a oracle client database, and my first though was using PHP based pages to comunicate and do the query. Later they would just generate the answer and get it on the cellphone. You can communicate with a PHP server via either GET or POST. I'd choose POST as is more secure IMO.
    Here are quite a good ammount of examples of how you can do it
    http://www.java2s.com/Code/Java/J2ME/Networks.htm
    They aren't PHP based examples, but you have can an idea of how it can be done

Maybe you are looking for