Which http method to use- get or post???
hi all.........
i m trying 2 proceed URLs using httpclient with GetMethod & PostMethod. But i m confuse about that at which time which method i hav 2 use- getor post??
The whole implementation of my code is done using j2se.
It's so important part of my project. So plz help me...
Random question to ask in these forums, you can do a simple google seach to find the difference between Get and Post.
Basically Get will parse information at the end of your address, such data will be made public to see.
e.g. www.mel.com?name=mel
Post on the other hand stores the data inside the body of the html document, upon more things.
Mel
Similar Messages
-
Which extraction methods are used for extracting AR , AP, GL , cost centre
which extraction methods are used for extracting AR , AP, GL, cost centre account data from R/3 system.
please let me know what type of extraction we use...generic or FISL.... OR COPA
ON WHAT SCENARIOS WE USE THIS EXTRACTIONS..
if any have documents on it please email...please send an email documents ..
to [email protected]
iam bit confused with sap help...
will reward full points
please replyHi,
For general ledger :
http://help.sap.com/saphelp_nw70/helpdata/en/57/dd153c4eb5d82ce10000000a114084/frameset.htm
This is the best how-to guide on AP,AR,GL and TAX.
http://help.sap.com/saphelp_nw04/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
Hope it helps.
Regards,
Srikanth. -
How to detect which http server is used ?
Hello
I need a simple method to determine which http server is used on an existing APEX installation, amongst the 3 possible methods.
ThanxIn most cases its the URL that hints at what is behind the scenes.
If you /pls/apex in all probability its Oracle HTTP Server with ModPLSQL
If you see <hist>:8080 then chances are its EPG or OC4J
If you see someother port, but not /pls/apex then chances are its ApexListener.
A more accurate way is to run the command below from within Apex , either an application or SQLWorkshop
select owa_util.GET_CGI_ENV('SERVER_SOFTWARE') from dualEPG Return Oracle Embedded PL/SQL Gateway/10.2.0.1.0 on XE
Apex-Listener returns Mod-Apex
Regards,
Edited by: Prabodh on Aug 19, 2010 5:48 PM -
Hi All,
One OAF concept question I have is : How can we tell by seeing a CO code , whether it uses a GET or POST method of submitting.
Thanks,
SrikanthHi Srikant.
Assuming the PR is being called by GET , do you mean to say that the page form values will be passed as through URL.YES.
Or a decision is taken at run time on the method based on the magnitude of form valuesMost probably NO. It will depend on browser whether it crashes or sends data or shows error message, IF the data is more than its CAPASITY.
URL specification itself does not put any length restrictions, but length restriction are put by browser and server. For ex, IE may be having max url size to 2k(Please confirm by googling exact lenghth for individual browser). Similar restriction is put by server also.
However in case of PUT, data is sent in header of packet, hence its size is usually much more larger,(Sufficient for near most of the cases)
So as much I know. No matter what the size of data is, in case of GET, its PR which is called. In case of POST, Its PFR.
More over.A form submit can be done by both GET AND POST. However OAF uses POST By default for form submission.
So again, even if data is submitted by GET, Its PR.AND if data is submitted by POST, its PFR which will be executed.
Decision of method (PF or PFR) is done by getting method type (GET OR POST).
Method type(GET or POST) is retrieved from HTTP header. (I did not find it documented anywhere that OAF gets method information from HTTP header, but there does not seems any other way possible.)
By the way Srikanth, why this doubt came to you that decision might be taken at runtime for large data submissions?
Abdul Wahid. -
Passing Parameter using GET or Post in J2ME
I have a problem passing parameter which has space between character to Servlet through GET or POST method. I am using HttpConnection. Which works properly whenever i sending data without space, else it shows Exception for space in URL.
If i use trim method which is Client side scrpiting then i am not able to update the database which takes input from the J2ME midlet.
Can any1 help me how to pass the parameter with space.Hi Mark,
The "number" format relies on the formats supported by the JS
native Number object. We don't actually do any number parsing
ourselves in Spry. One workaround, if you need things to sort
properly, is to have one column that is formatted european numbers,
and one column that is actually supported by the Number object. You
can create this custom column by using a filter:
function DataFilter(ds, row, rowIndex)
row["@premieNumber"] = new
Number(row["@premieNumber"].replace(/,/, "."));
return row;
Regarding the Request() object and your setURL() call ... the
3rd arg to setURL is optional, and only necessary if you are going
to use POST, or specify some header to send. If you do use post or
want to send some specific header, the 3rd arg just has to be an
object with only whatever options you want to specify, you don't
have to specify them all ... the options names exactly match the
fields defined in a Spry.Utils.loadURL.Request object.
We do have a utility class that gathers all of the input
values in a form. You will find it in Spry 1.6 in SpryUtils.js. The
name of the function to call is:
var str = Spry.Utils.extractParamsFromForm(form, elements);
The 2nd arg is optional, and allows you to specify what
element values you want to retrieve. If it is not specified, it
gets all values in the form.
--== Kin ==-- -
CS3 - Cropping tool: Which reduction method is used?
When I use the Cropping Tool to crop and reduce a large image to, say 400 x 300, which "reduction method" does the tool use?
In "Image Size", it gives options for Bicubic, Bicubic Sharper, etc etc
Is there a place to set the method for the Cropping Tool?
ThanksThanks.
Okay, I've got it:
There is a setting in Prefs which controls the method, but in the "Image..." command, you get a chance to temporarily override the Prefs.
Setting the method "Image..." does NOT change the default method set in Prefs.
Cheers. -
Which update method to use???
Hi all,
Our client has an average of 1000 sales orders per day.
Which update method will be the best for such a scenario and why?
Please suggest.
Cheers
JayashreeObviously Delta Update.
Whenever you have a regular postings in the source system, it is always advised to go for Delta update instead of Full update.
If you go for Full update, day-by-day the number of records will increase and yr data load performance will be badly affected.
In case of Delta, only the changes will be captured and load perofrmance will be consistent.
Regards,
Balaji V -
Many of us, who are starters, starting to wonder when reading any API documentations or starting out with your first program built to make any of the API calls, what do all error codes means, when I get many different types of response from running the program/script. The only reason I thought about sharing this is because I know how motivation plays a key role when dealing with Eloqua platform and building components on top. This extends the functionality beyond what is already out of the box.
I put together a table that explains these in details. I hope you can benefit in resolving issues as you venture in your journeys. This is a very common chart that can be seen across many platform REST APIs. Idea was to have it here because the audience are not always the same.
Response Code
HTTP Operation
Response Body Contents
Description
200
GET, PUT, DELETE
Resource
No error, operation successful.
201 Created
POST
Resource that was created
Successful creation of a resource.
202 Accepted
POST, PUT, DELETE
N/A
The request was received.
204 No Content
GET, PUT, DELETE
N/A
The request was processed successfully, but no response body is needed.
301 Moved Permanently
GET
XHTML with link
Resource has moved.
303 See Other
GET
XHTML with link
Redirection.
304 Not Modified
conditional GET
N/A
Resource has not been modified.
400 Bad Request
GET, POST, PUT, DELETE
Error Message
Malformed syntax or a bad query.
401 Unauthorized
GET, POST, PUT, DELETE
Error Message
Action requires user authentication.
403 Forbidden
GET, POST, PUT, DELETE
Error Message
Authentication failure or invalid Application ID.
404 Not Found
GET, POST, PUT, DELETE
Error Message
Resource not found.
405 Not Allowed
GET, POST, PUT, DELETE
Error Message
Method not allowed on resource.
406 Not Acceptable
GET
Error Message
Requested representation not available for the resource.
408 Request Timeout
GET, POST
Error Message
Request has timed out.
409 Resource Conflict
PUT, PUT, DELETE
Error Message
State of the resource doesn't permit request.
410 Gone
GET, PUT
Error Message
The URI used to refer to a resource.
411 Length Required
POST, PUT
Error Message
The server needs to know the size of the entity body and it should be specified in the Content Length header.
412 Precondition failed
GET
Error Message
Operation not completed because preconditions were not met.
413 Request Entity Too Large
POST, PUT
Error Message
The representation was too large for the server to handle.
414 Request URI too long
POST, PUT
Error Message
The URI has more than 2k characters.
415 Unsupported Type
POST, PUT
Error Message
Representation not supported for the resource.
416 Requested Range Not Satisfiable
GET
Error Message
Requested range not satisfiable.
500 Server Error
GET, POST, PUT
Error Message
Internal server error.
501 Not Implemented
POST, PUT, DELETE
Error Message
Requested HTTP operation not supported.
502 Bad Gateway
GET, POST, PUT, DELETE
Error Message
Backend service failure (data store failure).
505
GET
Error Message
HTTP version not supported.
Hope this helps. Original post: REST API Status Codes and Complete REST API Tutorial with Status Codes.
Thank
AmitHi, I am trying to PUT to update contact info and I get following error:
2015-01-16 11:00:17,970 INFO [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(97) | accessHttpsPut.url=https://secure.eloqua.com/API/REST/2.0//data/contact/7606838, text={"id":"7606838","accountName":"openIdStr001","emailAddress":"[email protected]","type":"Contact"}
2015-01-16 11:00:18,931 ERROR [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(140) | ClientProtocolException
org.apache.http.client.HttpResponseException: Request is malformed.
Is there any idea?
Thanks so much.
Sincerely. -
Which EAP Method to Use?
Hi.
We are looking to implement 802.1x on our Wireless Network. I need to support Windows XP and above, Apple Macs (maybe iPhones, etc) and some Linux.
I would have liked to have used PEAP with EAP-MSCHAPv2, however I am stuck with ACS 4.2 backended into LDAP (Oracle IDM) and this won't support MSCHAPv2.
We don't really want to spend anything on supplicants, so I'd like to know what method would be best for the spread of clients we have to support.
Thanks
MatthewMatthew:
I think you knew the answer, that is why you mentioned that you don't wana spend anything on the client side
Unfortunately, you will need to use EAP-GTC (Generic Token Card) method in order to work with LDAP integrated withradius server.
Cisco PEAP uses EAP-GTC although this only works in wireless environment and Microsoft PEAP uses EAP-MSCHAPv2.
Acs supports both the methods so only option here is to use GTC supplicant on the client side.
In order to enable EAP-GTC, you can use either one of them:
Cisco350card
Cisco ACU utility
HTH
Regards,
JK
Plz rate helpful posts- -
Which password method to use?
I don't know which AX I have. It is dated 2005, and was given to me. Do I choose WEP, WPA, WPA2, etc.?
the most secure would be WPA2, however, early versions of the AX may not support that.
click here to *identify your airport hardware* and find out.
JGG -
Disable HTTP Methods for SharePoint site
Hi,
Our firewall is reporting that someone is trying to use HTTP OPTIONS Method to exploit our SharePoint server.
I want to know which HTTP methods are required by SharePoint 2010 so that i can disable other HTTP methods to increase security.
I am trying to follow recommendations from Open Web Application Security Project.
https://www.owasp.org/index.php/Test_HTTP_Methods_(OTG-CONFIG-006)
Regards, Muhammad Usman AzmatVerbs such as OPTIONS will require authentication to be of any use. If you disable OPTIONS, you'll likely run into various issues using SharePoint, and here is an older example (that will likely apply even today):
http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/10/03/sharepoint-cisco-css-switch-issue.aspx
At any rate, changing IIS settings at the Web Application IIS site level, with the exception of IIS Site Bindings where appropriate, is highly discouraged.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
How to know which compression scheme is used in a TIFF file
I have an application which processes multipart tiff files. How can I extract the header of TIFF file to know which compression scheme is used in it.
Post Author: V361
CA Forum: Integrated Solutions
What are you using CR XI ? or ??? -
Call Bpel process through HTTP get or post method
I need to call BPEL process from Mobile.
In mobile we are using HTTP get or post methods. so can anybody tell me how to invoke BPEL(how to pass input to BPEL) by using HTTP get or post method.
Vivek garg
Edited by: 809104 on Dec 24, 2010 2:36 AMI got the soluntion
we just need to change the binding in WSDL file from Soap to HTTP.
First of all add three namespaces in wsdl file
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Then change the Request msg from element type to string type like below
<message name="UserLoggOffRequestMessage">
<part name="UserId" type="xsd:string"/> (add this one))
<!--<part name="payload" element="client:UserLoggOffProcessRequest"/>-->(remove this one)
</message>
Then change the binding
<binding name="UserLoggOffBinding" type="client:UserLoggOff">
<http:binding verb="GET"/>
<operation name="process">
<http:operation location="/process"/>
<http:urlEncoded/>
<output>
<mime:mimeString part="Body"/>
</output>
</operation>
</binding>
Then do some changes in service tag . we need to do the changes in location only.
we need to remove orabpel from location and add httpbinding
http://infva04718.vshodc.lntinfotech.com:8888/*orabpel*/MobileApplication/UserLoggOff/1.0
http://infva04718.vshodc.lntinfotech.com:8888/*httpbinding*/MobileApplication/UserLoggOff/1.0
do like following
<service name="UserLoggOff">
<port name="UserLoggOffPort" binding="client:UserLoggOffBinding">
<http:address location="http://infva04718.vshodc.lntinfotech.com:8888/httpbinding/MobileApplication/UserLoggOff/1.0"/>
</port>
</service>
Then deploy the process then u can invoke this
http://infva04718.vshodc.lntinfotech.com:8888/httpbinding/MobileApplication/UserLoggOff/process?UserId=a1
here process is name of process u want to invoke -
I have been given a new requirement to send a zipped file(s) to a client using HTTPS using a Multipart Post.
I have found an example...
DECLARE
req utl_http.req;
resp utl_http.resp;
value VARCHAR2(1024);
BEGIN
req := utl_http.begin_request('http://www.psoug.org');
resp := utl_http.get_response(req);
LOOP
utl_http.read_line(resp, value, TRUE);
dbms_output.put_line(value);
END LOOP;
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
END;Which obviously returns and displays the HTML content of the URL, however we need to post zipped files in the content. We have been told by someone at Oracle that we can use the UTL_HTTP package to do this but when i search for this all i find is Java.
Can anyone point me in the right direction as to where to start and any code examples would be a great help, i tried posting this in the SQL / PLSQL forum but with no success..
Thanks in advance
Graham.Hi:
This is tricky one and I have to say that there is not a lot around about it.
The example you have shown is for UTL_HTTP and while you are on the right track, you want HTTPS and that requires, in addition to what you, the use of the Oracle Wallet. The wallet has to be setup on your machine and referenced in your code. Additionally, you need to be quite clear about the data that is being expected by the remote system to which you are sending the POST request.
Here is a code example that I have tried to explain a bit for you. Obviously my code is doing something quite different from what you require but the methodology will be similar:
+++++++++++++++++++++++
create or replace
PROCEDURE ABS_MSG_API
(cab IN VARCHAR2,
booking_ref IN NUMBER)
AS
l_cab VARCHAR2(10);
l_booking_ref NUMBER;
l_uuid VARCHAR2(50);
l_answer integer;
req utl_http.req;
resp utl_http.resp;
value clob;
listing VARCHAR2(400);
BEGIN
l_cab := cab;
l_booking_ref := booking_ref;
listing := 'https://........<site address>;
/* next you must identify the location of your wallet */
utl_http.set_wallet('file:C:\Documents and Settings\administrator\ORACLE\WALLETS','redy2go4it');
utl_http.set_transfer_timeout(60);
dbms_output.put_line(listing);
/* next we start the request. Though a GET here, a POST is the same thing */
req := utl_http.begin_request(listing,'GET','HTTP/1.1');
/* in my case a username and password are passed - think of this at your POST parameters */
utl_http.set_header(req,'Username',xxxx);
utl_http.set_header(req,'Password',xxxxx);
utl_http.set_header(req,'Version','99.99.99');
/* the rest is much like your code already, with some debug capability */
resp := utl_http.get_response(req);
DBMS_OUTPUT.PUT_LINE('Request Method....'||req.METHOD);
DBMS_OUTPUT.PUT_LINE('HTTP Response Status Code: ' || resp.status_code);
DBMS_OUTPUT.PUT_LINE('HTTP Response Reason Phrase: ' || resp.reason_phrase);
DBMS_OUTPUT.PUT_LINE('HTTP Response Version: ' || resp.http_version);
LOOP
utl_http.read_line(resp, value, TRUE);
l_answer := instr(value,'uuid',1,1);
IF l_answer > 0 THEN
l_uuid := substr(value,l_answer+6,36);
dbms_output.put_line('The string is.....'||l_uuid);
END IF;
IF l_answer > 0 THEN
send_dt_message(l_uuid,l_cab,l_booking_ref);
EXIT;
END IF;
END LOOP;
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
l_answer := instr(value,'uuid',1,1);
dbms_output.put_line('The value is......'||l_answer);
END ABS_MSG_API;
When you submit a POST, all of the parameters are passed as part of the header. You must determine exactly the information being expected by the remote system.
You can find further information is you search for HTTPS on Ask Tom. There is some useful stuff there.
I use UTL_HTTP for HTTPS requrests all the time. As I said, it is a bit tricky at first, but the key is the Oracle Wallet and then reading the UTL_HTTP documentation that comes on your DB media disc under PLSQL Packaged Procedures.
I hope this helps.
Bruce Clark -
Problems using GET method in JSP
Hi,
I had some problems using GET method in JSP.
I'm using Apache web server 1.3 and Tomcat 3.3.1 in windows 2000.
And I'm using language English and Korean.
When I send messages using POST method, all is good
But when I send message using GET method, English is good, but Korean is not good.
I tried to encode using
URLEncode.encode(str, "UTF-8")
and decoding it using
URLDecode.decode(request.getParameter(tag), "UTF-8")
but it didn't work.
How can I receive request including Korean using GET method in JSP?
If anyone have solutions, please let me know.
thanks.Hi,
I had some problems using GET method in JSP.
I'm using Apache web server 1.3 and Tomcat 3.3.1 in
windows 2000.
And I'm using language English and Korean.
When I send messages using POST method, all is good
But when I send message using GET method, English is
good, but Korean is not good.
I tried to encode using
URLEncode.encode(str, "UTF-8")
and decoding it using
URLDecode.decode(request.getParameter(tag), "UTF-8")
but it didn't work.
How can I receive request including Korean using GET
method in JSP?
If anyone have solutions, please let me know.
thanks.This problem appears, when one use UTF-16 encoding in JSP - am I right?
If so there are two solutions:
1) Temporary: Use "UTF-8" - or any other 8 bit encoding scheme and
encode Korean symbols with "&1234;" kind of escapes - though it
may not work
2) Absolute: get my piece of code, which I have managed to write
just a month ago resolving absolutely similar problem with UTF-16
in code using Chinese/Russian/English encodings
But I wouldn't say that it's costs 10 DDs :) - it's much more
expensive... So try 1st variant if it wouldn't help - let me know.
I'll figure :)
Paul
Maybe you are looking for
-
I am trying to install CS2 but I receive a message that my serial number is invalid.
I have been trying to install CS2 on Win XP. (My old laptop died, I still have the original disks, serial #, etc. but was unable to use because of the activation problem). I downloaded all the files from the website referenced above and tried to foll
-
Having trouble playing some videos in IE9
Vista Home Premium SP2 32 bit IE9 and Firefox 7 I am having a terrible time with flash in IE9. I can not access that hardware acceleration feature to turn it off. If I right click on the video box I just get my normal context menu. I went to the page
-
Define Additional Fields for Line Item Display
Dear gurus, I'd like to ask for your help again, please. I've just added the field BKPF-USNAM to the list of fields of FBL1N using IMG:" Financial Accounting-> Accounts Receivable and Accounts Payable->Vendor Accounts->Line Items-> Display Line Items
-
Can you search two artists at once in itunes
I wanted to listen to two different artists and I know I can just make a playlist and that's that, but I was wondering if there was a way to search for both artists at once like perhaps if in the search bar i could type "dante; turtl" and that would
-
ESS Family Data - can't remove field Date of Birth
Hi to everyone. I have a problem with ESS Personal Information part - Family Data. In portal we don't need field called "Date of Birth" witch is mandatory and must have an information. My question. How and were I can remove this field or make it not