Https scripting
Hi,
I'm bit new to scripting and did lot of R&D in how AI script connect to external applications.
I'm able to connect to http site but failing while connecting https site.
Below is my code,can some one please help how to connect to https.
var request = [];
request.push('POST', ' ', path, ' ', "HTTP/1.1\n");
request.push('Authorization:', 'Basic a2hhbGxncmltc29uOnB0Yw==', '\n');
request.push('Host: ', host, "\r\n");
request.push('User-Agent: ', USER_AGENT, "");
//request.push('Connection: ', 'close', "\n");
request.push('Pragma: ', "no-cache", "\r\n");
Regards,
NARESH
scripters do post here but for future reference there is a dedicated scripting area where you might better target this sort of thing:
Illustrator Scripting
Similar Messages
-
EEM http script returning "content problem"
Hi @ll,
I finished to record an HTTP script via EEM, but i got an error message "status: [503] content problem"
Can anyone explain what is this error message means ?
please see the attach screen shot.
TIA,
Haim.Derrick,
Just noticed your query.
The script seems to do what you have described. If both IP SLA probes are down, it would go an remove the static default route.
You are right, there is no recovery script, and I guess it was intended to be done manually.
For recovery, you would need to come up with a logic you like, because if you are getting a backup internet uplink through your MPLS network, then the IP SLA probes should recover, and there is no easy way to know the ISP uplink is working again...
You could have a script that recovers automatically later in the night (just adding the static route again), and if the IP SLA probes fail again, it would fail back again, and generate the syslog.
If you are adding the default route, and the script triggers, then it means something is wrong with the IP SLA probes... Are you sure the route is working?
Take a look at the "show ip sla stat" outputs to see what is wrong...
You could disable the script (just remove it from the config) and see if Internet actually works for you when you add the static route...
Arie -
CSADMIN configuration &Content server configure the HTTP script
Hello Experts,
i had install the Content server 640/MaxDB 7.6on Solories platform . how to configure the CSADMIN in R/3 system . when we are adding the R/3 system , it need to mention the HTTP script
what i need to mention in the field: HTTP script(.i. e /ContentServer/ContentServer.dll not in Solories )
when i am connecting on web browser it is serching for the same location (i.e /ContentServer/ContentServer.dll ).
Please help how to resolve this issue .
Thanks
Rajasekharhere ContentServer.dll not available in Unix.if we not mentioned this in CSADMIN configuration ,it won't works in the web browser
That's not what the installation manual says.
It should be no different for UNIX... if your URL is not working just check that apache is started,
Read,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/53810394-0701-0010-e996-fea1d9eac135
Regards
Juan -
Does Raptor support running scripts using http like SQL*Plus? Example: @http://blah/scripts/foo.sql. I have all my scripts centralized on an http(s) server so I don't have to copy them all over the nation. This works great in SQL*Plus. Let me know if I'm doing something wrong or whether that piece is not there yet.
Using Windows XPThat's a cool feature I never knew about so no it's not in sql developer currently.
-kris -
Bug in oracle embedded http listener
Hi there,
I've discovered a bug in the Oracle embedded http listener for our Oracle on RHEL database version 11.1.0.6 where it will return HTTP-400 bad request errors if a cookie is created with a bare comma in the cookie value. To see for yourself, simply create an apex application with an open door authentication and enter a username with a comma in it - page 101 writes the username to a cookie, and then you get HTTP-400 errors.
I'll raise this as a bug at Oracle, but in the meantime I'm frantically trying to figure out a workaround. We have a production site using a standard Apache frontend that we link to Apex applications using mod_rewrite. There are other applications on the site (invision powerboard) which create cookies with bare commas, so we have no control over the creation of these maligned cookies. My thinking is that we might be able to use mod_rewrite rules to weed out the offending cookies and encode the commas so that things continue to work.
Can anyone assist with a workaround?
Many thanks,
MikeHi Mike,
perhaps you can try to modify the cookies on the client?
http://scripts.franciscocharrua.com/javascript-cookies.php
Or is it already too late so that you cannot even run the first procedure to inject the javascript code into the first page?
Or, you could configure the DAD to run a stored procedure before anything else:
PlsqlBeforeProcedure
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_epg.htm
If this is already too late, your only option seems to be to use an Apache as a proxy and modify the cookie value there.
Regards,
~Dietmar. -
TREX not working for e-recruiting with HTTP content server
We have a separate e-recruiting instance where we have only e-recruiting functionality installed. In this system we are using Storate type as "http content server instead of standard setting "SAP system database" for HR_KW content repository via transaction code "OAC0"
Following are the details
Document Area: HR_KW
Storage type : HTTP Content Server
Version no. 0046 Content Server version 4.6
HTTP server vd24cs02.sce.com
Port Number 8080 SSL Port Number
HTTP Script archive
Phys. path /usr/sap/N09/SYS/global/
Points to be noted:
1) TREX Search functionality for Job postings etc is not
working with this setting, however if we use HR_KW_CONT (storage type=03 SAP System database) , above mentioned functionalities work. We observed that xml files required for TREX search are also not getting created when we change the settings.
2) We observed that when we change the storage type the indexing job is successful but application log shows some failures in reading/modifying xml files
Please let me know what are the settings/ procedure to use a different storage type instead of standard setting delivered with the product. Anything related to the setting for above requirementHi All,
I may have a similary problem but I'm not entirely sure.
I have been tasked with setting up a simple java servlet to authenticate against a BOXI (Business Objects) server, from my tomcat server (tomcat 5.5) on my windows XP desk top machine. I will add more info on this shortly.
I have been supplied with a krb5.ini file and the bscLogin.conf file as follows:
bscLogin.conf :
com.businessobjects.security.jgss.initiate {
com.sun.security.auth.module.Krb5LoginModule required debug=true;
krb5.ini[libdefaults]
default_realm = ADF.SOMEWHERE.CO.UK
dns_lookup_kdc = true
dns_lookup_realm = true
default_tgs_enctypes = rc4-hmac
default_tkt_enctypes = rc4-hmac
[realms]
ADF.SOMEWHERE.CO.UK = {
kdc = DC90.ADF.SOMEWHERE.CO.UK
default_domain = ADF.SOMEWHERE.CO.UK -
Content Server error on LINUX (HTTP error: 404 Not Found)
Hi All,
While checking the status of content sever by using the T-code CSADMIN I am getting the following error message.
<b>***********************************************************
Error : - HTTP error: 404 Not Found
Message no. CMS025
Diagnosis
Error in accessing via HTTP
404 Not Found
*************************************************************</b>
I have done the installation of Content server 640 on Red Hat Linux / MaxDB.
Moreover I am using the following connection data in CSADMIN.
HTTP server :- 80.0.0.205
Port Number:- 1090
HTTP Script :- ContentServer/ContentServer.dll
Version no. :- 0046
Please help me.
Thanks ,
HarshalHi Dagmar,
The HTTP services are working fine. But i m not able to reach the content server url can u help on this?
Please find the http trace file
ERROR => PlugInHandleServData: HttpParseRequestHeader failed (rc=701) [http_plg.c 3258]
ERROR => IcmHandleNetWrite(id=3/4782): HandleServData failed (rc=701) [icxxthrio.c 1833]
The error i am getting in Content server url is
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. -
Content managemtn http error 404 not found
'http://<host name>:<port no.>/ContentServer/ContentServer.dll?serverInfo'
status is running but when I m a trying to configure
in OAC0, with these fields fill.
Document Area: Document Management System
Storage type: HTTP Content server
Version no: 0046
HTTP server: IP address for content server host
HTTP Script: ContentServer/ContentServer.dll
I am getting an error
http: 404 not foundHI stiaan,
Thank you for the quick response.
When I execute transaction csadmin. its firs asking me the details of the content server like in two fields.
Repositry, server .
I have given all the correct details n I am getting new error.
1. This error is comming when I have check the SECURE CONNECTION box.
connection to partner 'localhost:0' broken / CPIC-
CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program
connection ended (read err
2.If I uncheck the secure connection box I m getting same error.
http error 404 not found.
3. do we need to define any rfc connections in sm59 to content server..??
again thx.
Edited by: letzfriend on Jan 26, 2012 8:59 AM -
How to export Powershell script information to Sharepoint?
I'm trying to export information gather from a Powershell script to a Sharepoint list. I've got a couple of powershell scripts that gather general server information from a server ex: server uptime, disk space, service tag, etc. and it will export the information
to a csv file. What I would like to do is out-put the same information gathered by the powershell scripts to a Sharepoint list directly if at all possible.
Ex:
# all this does is reads from a list and runs a script call "boottime.ps1"
get-content "\\%Data-Path-Of-List%\computers.txt" | %Data-Path-Of-Script%\boottime.ps1 | Export-csv %Data-Path-For-CSV\Computers.csv
# then just exports the information from the boottime.ps1 script to a csv file
#I also have a script that will upload the information to a sharepoint list.
# I found that I have to run this in version 2 of powershell, so I just open a DOS prompt in Admin Priv's and type the following
powershell.exe -version 2.0
# Next I make sure the Sharepoint snap-in is loaded
if ( (Get-PSSnapin -Name Microsoft.sharepoint.powershell - erroraction silentlycontinue) -eq $null)
Add-PsSnapin Microsoft.Sharepoint.Powershell
$spweb = get-SPweb $spserver
$spdata =$spweb.getlist("%URL_Of_My_List%")
# this is the same location from the orginal Powershell script previously stated.
$ComputerInfoFile = "%Data-Path-For-CSV%\Computers.csv"
foreach ($rows in $tblData) {
# here is where I add the information from my csv file
# 2 things needs to be present
# 1st the colums have to be present in the sharepoint site before I can upload the information
# 2nd the columns have to the headers in my csv file
$spItem = $spData.AddItem()
$SpItem["ServerName"] = $row."ServerName".toString()
$SpItem["Uptime"] = $row."Uptime".toString()
$SpItem.Update()
# this just disconnects from Sharepoint
$spWeb.Dispose()
Please dismiss all the comments it just helps me understand what the code is doing, also if this is not the correct place to post this question I appologize in adavance and ask that if this is the incorrect place to post this question please provide me a
link to a where I can post such questions.Sorry for the delay in posting this, but I ended up getting working. I'll post it in the hopes that my head scratching will save someone else some head scratching:
I ended up writting 3 PS scripts and one batch job.
1st Batch file
powershell.exe -version 2.0 -command
\\%Script-Location\Get-Server-Infor-4-SP.ps1
powershell.exe -version 2.0 -command \\%Script-Location\Delete-list-Items.ps1"
powershell -veriosn 2.0 -command
\\%Script-Location\Populate-SP.ps1
1st PS script that gets the info:
get-content
\\%Location-Of-My-File-With-List-Of-Servers%\%name-of-file%.txt |
\\%Location-Of-My-Script-To-get-the-Information-I-want | Export-csv
\\%location-of-my-output\%filename%.csv
Ex: get-content C:\scripts\computers.txt | C:\scripts\boottime.ps1 | export-csv C:\scripts\computer.csv
2nd PS script Delete-List-Items.ps1
# http:
#Script 1 Boottime.ps1:
# This script permits to get UpTime from localHost or a set of remote Computer
# usage
# localHost
# .\BootTime.ps1
# set of remote computers
# get-content .\MyserverList.txt | .\boottime.ps1
# Optionally pipe output to Export-Csv, ConverTo-Html
Process {
$ServerName = $_
if ($serverName -eq $Null) {
$serverName= $env:COMPUTERNAME
$timeVal = (Get-WmiObject -ComputerName $ServerName -Query "SELECT LastBootUpTime FROM Win32_OperatingSystem").LastBootUpTime
#$timeVal
$DbPoint = [char]58
$Years = $timeVal.substring(0,4)
$Months = $timeVal.substring(4,2)
$Days = $timeVal.substring(6,2)
$Hours = $timeVal.substring(8,2)
$Mins = $timeVal.substring(10,2)
$Secondes = $timeVal.substring(12,2)
$dayDiff = New-TimeSpan $(Get-Date –month $Months -day $Days -year $Years -hour $Hours -minute $Mins -Second $Secondes) $(Get-Date)
$Info = "" | select ServerName, Uptime
$Info.servername = $servername
$d =$dayDiff.days
$h =$dayDiff.hours
$m =$dayDiff.Minutes
$s = $daydiff.Seconds
$info.Uptime = "$d Days $h Hours $m Min $s Sec"
$Info
#Script 2: Delete-List-Items.ps1
# http://markimarta.com/sharepoint/delete-all-items-in-sharepoint-list-using-powershell/
# there seems to be a problem with running this script in version 3 or later, the workaround is to run it in version 2
# below is the cmd for doing so, just open up a DOS prompt with Admin Privileges Start-->Run-->cmd
# type then copy and paste the following line the DOS window then you can run this script
#powershell.exe -version 2.0
# make sure that the Microsoft.SharePoint.PowerShell Snap-in is installed as well
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
Add-PsSnapin Microsoft.SharePoint.PowerShell
# "Enter the site URL instead http://serverurl"
$SITEURL = "%http://serverurl%"
$site = new-object Microsoft.SharePoint.SPSite ( $SITEURL )
$web = $site.OpenWeb()
"Web is : " + $web.Title
# Enter name of the List below in the [“%List-Name%”]
$oList = $web.Lists["%List-Name%"];
# This echo out the name of the list its going to be deleting the records from
"List is :" + $oList.Title + " with item count " + $oList.ItemCount
# It’s just counting the rows/records
$collListItems = $oList.Items;
$count = $collListItems.Count - 1
# Here is where it is actually deleting the records and then out put the number or the record it deleted
for($intIndex = $count; $intIndex -gt -1; $intIndex--)
"Deleting record: " + $intIndex
$collListItems.Delete($intIndex);
#Script 3: Populate-SP_Test.ps1
# http://blogs.technet.com/b/stuffstevesays/archive/2013/07/10/3577320.aspx
# there seems to be a problem with running this script in version 3 or later, the workaround is to run it in veriosn 2
# below is the cmd for doing so, just open up a DOS prompt with Admin Privileges Start-->Run-->cmd
# type then copy and paste the following line the the DOS window then you can run this script
#powershell.exe -version 2.0
# make sure that the Microsoft.SharePoint.PowerShell Snap-in is installed
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
Add-PsSnapin Microsoft.SharePoint.PowerShell
# Here are some more varables that can be added I was not able to get this to work
#$SPComputerInfo="/Lists/PowershellTest/"
# Here is where we connect and Open SharePoint List via Powershell
$SPServer= "%http://serverurl%
$spWeb = Get-SPWeb $SPServer
$spData = $spWeb.GetList("%List-Name%")
# This is the variable for the path that has the file I want to input to SharePoint List
$InvFile="\\%location-ofList%\computers.csv"
# This is just some error checking to make sure the file exist
$FileExists = (Test-Path $InvFile -PathType Leaf)
if ($FileExists) {
"Loading $InvFile for processing..."
$tblData = import-csv $InvFile
} else {
"$InvFile not found - stopping import!"
exit
# Loop through Applications add each one to SharePoint
"Uploading data to SharePoint...."
foreach ($row in $tblData) {
#Here is where I add the information from my CSV file
#2 things have to be present
# 1. the columns have to be in the sharepoint site before I can import the information
# 2. columns have to the headers in my csv file
#"Adding entry for "+$row."Computer Information".ToString()
$spItem = $spData.AddItem()
$spItem["ServerName"] = $row."ServerName".ToString()
$spItem["Uptime"] = $row."Uptime".ToString()
#$spItem["DNSHostName"] = $row."DNSHostName".ToString()
#$spItem["DistinguishedName"] = $row."DistinguishedName".ToString()
$spItem.Update()
# This is just disconnecting from SharePoint
$spWeb.Dispose()
Enjoy, and if anyone has a better way of doing this I'm interested in knowing, thanks again
Thanks in Adavance -
HTTP Error 404: Page not found on my 8520?????
hi hope you can help me i use my phone loads for facebook and get notifications sent to my phone but when i click on one and i wnt to go into a group via the noticication on my phone i get HTTP Error 404 Page not found can anyone please help me its been like this for a couple of weeks now thank you x
Hi Nehal
We have found the issue . We were using wrong http script .
But we faced another HTTP error :
http error 401 unauthorized 5024 breach of security
when I want to store business document via GOS in VF03 -
Content Server - HTTP Error 400
Good morning. I've just installed Apache and Content Server. I've created my Content Repositories in SAP and everything checks out Online in CSADMIN and via SE38 - Report RSCMST.
However, from the Browser when I enter: http://<hostname>:1090/ContentServer/ContentServer.dll?serverinfo
I'm getting an HTTP 400 page not found error.
This is installed on Unix - AIX 5.3 - Content Server Version 6.30
Apache is working as I get a web page and I get the "Parent" directory when I enter only: http://<hostname>:1090
Any ideas ?Our Content Server is installed on a Standalone system. It's not on the same host as the SAP systems we're connecting to.
Yes, I'm able to create Content repositories and that's how I have them defined in CSADMIN. I created the CR's in OAC0 and then specified them in CSADMIN and done further configuration to them there. Our users have been able to use the CR defined in CSADMIN to archive data into the Content Server.
My CDADMIN definition is online, active and working,,, All green lights and being used. So I'm getting my error when I attempt
to access via http://<ContenServer_Hostname>:1090/ContentServer/ContentServer.dll?serverinfo.
Here's my CDADMIN definistion for My CR:
Content Repository: CS
HTTP Server: sap01dad.<client>.com This is my Content Server Hostname,,, Not the SAP system where it's defined in CSADMIN
Port: 1090
HTTP Script: ContentServer/ContentServer.dll
Version: 0046 -
Content server Instalation problem.---HTTP 404- ERROR FORBIDDEN
Hello Guys,
This issue is pertaining to Content server instalation with SAP 6 ECC.
Status till date:
1) content server is installed to windows 2003 server.
2) we are currently working in quality server.I have opted a 80 GB harddisk and installed windows 2003 server and also installed Content server to that.
3) i defined New content repository ZDMS_C1in OAC0
Gave appropriate description,
Doc area : Doc magt system
Storage type: HTTP content server
Version no: 0046
Http server 132.147.167.110( this is 80 gb system Ip address)
port number:1090
Http script: Contentserver/contentserver.dll
Physical path: H:usr\sap\ELD\SYS\Global\ (default selection )
i saved and i get every information of created by and last changed by....
Ok but when i <u><b>test connection</b></u> it says " HTTP 404:ERROR FORBIDEN".
I get another error when i "<u><u><b>SEND CERTIFICATE</b></u></u>"
" ERROR IN HTTP ACCESS IFHTTPCLIENT--RECEIVE 1
ICM-HTTP-CONNECTION-FAILED.
Some problem in IIS server but litraly basis team is unable to solve the status.
How to solve this issue.....Help me out in detail.
Regards,
Murali.SHi Murali,
Follow two NOTES 212394 & 661852
or
Ensure that PSE (Personal Security Environment) is created directly on SAP system after the system is installed, this is one time activity.
To do this you use T Code "STRUST". You can check with your Senior Basis guy for more.
By default the system's PSE is used to sign URLs. from SAP WAS you can also create your own PSE to sign Kpro URLs
Regards
Rehman -
Siebel script with attachment files
Hi,
I am recording a web application(siebel), One screen contains Browse field and i need to browse some files from my local machine.
This application does not accept same document twice. During replay, it needs to select different files randomly from my machine.
Can some one please advice how to overcome this.I'm using OpenScript.You should first databank the filename you wish to browse. Following this task, the complete solution depends on whether you are creating an HTTP or Web Functional script. An HTTP script will need java code to read in the file, and full analysis of the recorded requests to determine how you should inject the variable file data for all the iterative requests.
-
Java Script Engines and groove
Hello
I want invoke groovy code from JAVA by Java Script Engines.
I have very basic code:
List<ScriptEngineFactory> factories = manager.getEngineFactories();
for (ScriptEngineFactory factory : factories) {
System.out.println("ScriptEngineFactory Info");
String engName = factory.getEngineName();
System.out.println("Script Engine: " + engName);
System.out.println("-------------------------------------------");
ScriptEngine engine = manager.getEngineByName("groovy");When i run thos code I receive beautiful engines list:
ScriptEngineFactory Info
Script Engine: JRuby Engine
ScriptEngineFactory Info
Script Engine: groovy
ScriptEngineFactory Info
Script Engine: Mozilla Rhino
But in line:
ScriptEngine engine = manager.getEngineByName("groovy");I have exception like:
com.sun.script.groovy.GroovyScriptEngineFactory.getScriptEngine(GroovyScriptEngineFactory.java:90)
at javax.script.ScriptEngineManager.getEngineByName(Unknown Source)
at comtest.Main.main(Main.java:41)
Caused by: java.lang.ClassNotFoundException:
org.codehaus.groovy.syntax.SyntaxException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)I know that ScriptEngineManager use service provider and I add in META-INF folder "services" with file "javax.script.ScriptEngineFactory" and text "com.sun.script.groovy.GroovyScriptEngineFactory".
Perhaps jar will be helpfull:
http://ekontra.com/sadu/groove.rar
Thanks for help
saduIn https://scripting.dev.java.net say that implementation is for Groovy 1.5.6
In code "factory.getLanguageVersion()" return groovy ver:1.5.6
in groovysh I have:
Groovy Shell (1.5.6, JVM: 1.6.0_02-b06)
After update Groovy to 1.5.7 dont help -
UCCX scripting change decimal symbol from point to comma
Hi all,
I have an UCCX 7.0 SR5 deployment. I have some HTTP script to which I am passing some variable with the HTTP Contact Info. My scripts are accepting floats only if the decimal symbol used is a point. I would like to change this behaviour so that my scripts could accept floats with a comma instead.
Best Regards,
Hatem Hamdi,This problem cropped up with the advent of OS X. Prior to that the period (under the 3 on the right hand end of the big keyboard) worked as a decimal point and could produce a point or a comma depending on what language you were working with. Nowadays it doesn't work like that and no amount of fiddling with languages will get it to do things right. So now you either have to use the period (two spaces to the left of M) when entering measurements or else hold down shift when using the decimal period. It's a nuisance and takes a bit of getting used to. Incidentally the decimal period works right in the Calculator but for some reason not in Illustrator. Here in Iceland we use commas for decimals but have to enter periods for Illy measurements.
The trick that I use for converting points to commas and vice versa in balance sheets in annual reports and that sort of thing is this: First step - Use Edit : Find and Replace to select all the commas and change them to some obscure character that is not used elsewhere.
Second step - Select all the periods and change them to commas.
Third step - select all the "obscure characters" and change them to periods.
I haven't found a better way than this 3-step method but any other suggestions are more than welcome.
Maybe you are looking for
-
Broken link icons appearing instead of artwork in iTunes store
Hi, For some odd reason, I see "broken link" icons, which look like a chain made up of three links, with the center link broken, instead of music album artwork in iTunes store. Initially I see the album artwork, but then they begin to get replaced by
-
How to export data within tables in Oracle 10g
Since I'm using Oracle 10g, thus I wanted to know that do I have the option for exporting data from one table to another or exporting the whole table to some another databases like SQL Server or any other database.
-
How can i reduce the saturation of a image to make it almost transparent ?
how can i reduce the saturation of a image to make it almost transparent ?
-
Firefox, even before 4.0, crashes hard on my Nexus S. Most recently it crashes on filmcow.com. I was browsing the web pages, hit back twice, and it froze. The other time I was browsing facebook. I was testing how firefox would compare to chrome in th
-
"No document excerpt available" while searching FOLDERS
Hi everybody, When we search in our portal using the quick search box we get a result, no problem there. But, when the result is a folder (not a document) we get this message "No document excerpt available" instead of a nice text or description of wh