Using Curl for example, I can "post" data in a GET request. Is this a valid thing to do? With that I mean:
Is it not forbidden by any RFC specification?
Does someone out there use it with good reason?
Thanks for any help.
...
Using Javascript (or Ajax) I want to connect to a page (a .php page) every 10 seconds. This will be done in user-side (browser) within a web page. Just, I'm trying to see the online users. I have about 1-2 visitors daily, in my personal web site.
...
Hi, I've added a feature in my app that sends POST request to my web server. I've tested it and it does run fine. But at some moment when I tried to run again the app, then it crashes. I've found out the error 503 that says Server is unavailable. My question was what should I do to prevent my app from crashing when I've receive this err...
I'm using starbox and I have a function defined like:
document.observe('starbox:rated', saveStar);
function saveStar(event) {
new Ajax.Request('saverating.htm', {
parameters: event.memo
});
}
I can retrieve the event parameters (rated, average, etc) in my controller. However, I also want to send another variable in the Ajax...
I am using Apache Commons HttpClient PostMethod 3.1.
In the PostMethod class there are also three methods for setting POST method's request body:
setRequestBody(InputStream body)
setRequestBody(String body)
setRequestBody(NameValuePair[] parametersBody);
NameValuePair API
First two methods are deprecated. Does anybody knows why? Bec...
So I'm using Django with Google App Engine and I have an urls.py file that redirects each url to a corresponding method. Each one of those methods is automatically passed "request" as one of the arguments, which I believe is an HttpRequest object.
How do I create this populated request object from within my code? For example, if I'm wi...
So I'm creating a plug-in for Adobe After Effects.
I want to establish connection between it and my server (for ex to send Ajax request for approving serial number, or just sending a short cut of a frame) how to do such thing?
Any materials, blog articles would be wary grate.
...
Hi folks,
my site has a few skins, to repsent the UI. These skins are based on the HOSTNAME they are connecting with.
As such, each css file, image, etc needs to be prepended with the correct folder location.
So, i thought that i should put it into the session of the user.
So, which is the earliest place i can/should do this.
Second...
Trying to get a very simple request working with MooTools Request.JSON. After having no success building it from scratch, I took an example from somewhere and slowly pared it down to the bare, bare minimum, then put it back into my own page. The only things changed are the url and element ID, but to no avail.
Any help, ideas, will be gr...
I need to call a simple method from a WfService.asmx file,using $.get().
It works fine with POST method.Here's the Method:
[WebMethod]
public int Sum()
{
return 10 + 10;
}
Now code using Jquery:
$.get('WfService.asmx/Soma',function(data){
alert(data.d);},"json");
And i get a error message.
What am i doing wrong?
...
$.getScript('ajax/test.js', function() {
alert('Load was performed.');
});
.. like the above code which loads an external JS on request, is there something similar available to load an external CSS stylesheet when required?
Like for example when I use lightboxes (inline popups) on my site, I want to avoid loading lightbox JS and CS...
Hi!
I have a request-form tag with a request-form-submit button. Problem is: when I click on the submit button, the popup form appears on top of the button, and it is not in the center of the window. See image:
[img]http://i46.tinypic.com/25yzzfk.png[/img]
It is also hidden by other images. Anybody knows how I can get the popup to be ...
Hi
I am learning Ruby and I have written the following code to find out how to consume SOAP services:
require 'soap/wsdlDriver'
wsdl="http://www.abundanttech.com/webservices/deadoralive/deadoralive.wsdl"
service=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
weather=service.getTodaysBirthdays('1/26/2010')
The response that I get...
I never see how is PUT/DELETE request sent,
how to do it in PHP?
I know how to send a GET/POST request with curl:
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile);
curl_setopt($ch, CURLOPT_COOKIEFILE,$cookieFile);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($...
I have a django form with two different submit buttons, on the view where the form is submitted to I need to know what submit button was pressed and take different actions accordingly.
From what I have read the submit button's name or id should be somewhere in the request.POST dictionary, but it not there!
This is a fragment of my fo...
In a php page I have following code:
if($_REQUEST['c']!="") // I get error on this line itself. Why?
{
$pidis=(int)($_REQUEST['c']);
}
I keep getting Undefined index error.
On Googling I manage to understand that if a page is access without parameters (in URL) which we are trying to access we can get this error/warning. I believe t...
There are next initial conditions:
Backend: servlet for file uploading;
UI: form, that submits servlet for file upload:
<iframe id="uploadFrame" name="uploadFrame"></iframe>
<form enctype="multipart/form-data" method="post" target="uploadFrame"
action="<%= request.getContextPath() %>/uploadFile?
portletId=${portletId}&rem...
I'm using a Webphere server. I am performing a file upload through a servlet using the Apache FileUpload methods.
I attach a listener to this FileUpload which updates a "percentage" field denoting what percentage of the request has been processed. The request gets directed to an iframe (form's target is an iframe) so that the page that...
I am using flash to call a PHP page that needs to do a bit of processing. Is it possible to let PHP continue processing but show a response anyway so flash doesn't stall waiting?
...
The title is quiet straightforward. I have to know on server side if the script called through HTTP request or by command line. I could examine the $_SERVER['argv'] or $_SERVER['argc'].
What is the pragmatic way to do that?
...