get

HTTP 'Get' Security

...

ASP.NET with jQuery - POST vs GET

Hi everyone! Ok, I have a very silly question to ask (which Im rather embaressed about I must admit!). Im using the nyroModal plugin for jQuery within an ASP.NET 3.5 WebForms app. Basically, let's say I have a hyperlink pointing to http://www.mysite.com/GetData.html?id=100 When the link is clicked, I want GetData.html to extract data f...

Best way to sanitise POST/GET variables from a form/URL?

I am creating a website using PHP that makes use of a MySQL database and handles forms and variables from the URL. The variables are being using to dynamically construct SQL query strings. So i need a robust solution to make sure nobody is trying a SQL injection, etc.. A friend of mine has said that really i should only use stored proced...

How to determine total data upload+download in TCP/IP

Hi, I need to calculate total data transfer while transferring a fixed size data from client to server in TCP/IP. It includes connecting to the server, sending request,header, receiving response, receiving data etc. More precisely, how to get total data transfer while using POST and GET method? Is there any formula for that? Even a t...

Changing a get request to a post in python?

Hi, I have this- en.wikipedia.org/w/api.php?action=login&lgname=user&lgpassword=password But it doesn't work because it is a get request. What would the the post request version of this? Cheers! ...

jquery serialize and $.post

I'm trying to send a lot of data from a form using the $.post method in jQuery. I've used the serialize() function first to make all the form data into one long string which I will then explode serverside. The weird thing is when I try and send it using $.post it appends the result of the serialize() to the URL as if I was sending it usi...

jQuery ajax problem

I don't have any expirience in ajax functions of jQuery. I'm trying to make simple call like: $.get ("ajaxsupport/login"); I have a servlet with url-pattern ("ajaxsupport/login"). When I type in browser's address field "http://localhost:9090/ajaxsupport/login" I see some result. But $.get (..) doesn't even make a call. What is the ...

How to pass GET and POST data to the php executable?

I am writing a web server in C# and I'm trying to add support for PHP. I have it mostly working, except I don't know how to past GET and POST data to the PHP executable when i pass the file to it. I've been testing with GET since I haven't gotten to getting POST requests handled on the server, and I have the string of the arguments that ...

How to get the category title in a post in Wordpress?

Say I have a post called Hello World in Wordpress and I'm directly viewing this page, how would I go about finding the category of "Hello World" and displaying it? ...

ColdFusion CFHTTP Post is doing a second GET request right after

I am using ColdFusion 8. I'm doing a CFHTTP Post to a remote server. The remote site has looked at their logs and they say my code is doing the POST, and then immediately doing a 2nd GET request. Here is my code (the URL has been changed): <cfhttp url="https://www.theurlofthesite.com" method="POST" port="443" resolveurl="yes" redirec...

How to send a GET request from PHP?

I'm planning to use PHP for a simple requirement. I need to download a XML content from a URL, for which I need to send HTTP GET request to that URL. How do I do it in PHP? ...

Should my framework allow access to $_GET and $_POST at the same time?

Hi, I know you can use both $_GET and $_POST at the same time, but is this a required "feature"? I am writing a framework, where you can access input through: $value = $this->input->get('name',''); $value = $this->input->post('name',''); $value = $this->input->cookies('name',''); I'm just thinking here, is there a need for having GET...

static stylesheets gets reloaded with each post request

Every time there is a post from page the entire bunch of css gets reloaded. Is it possible to tell them not to come in again and again. There is a series of GET that get fired. Can we optimize in some way or is it normal behavior? The environment is google apps in python. ...

HTTP GET with request body

I'm developing a new REST-full webservice for our application. When doing a GET on certain entities, clients can request the contents of the entity. If they want to add some parameters (for example sorting a list) they can add these parameters in the query string. Alternatively I want people to be able to specify these parameters in th...

Selecting style tag of remote page?

I'm trying to load the inline style content of a remote xhtml page. I used load previously, but that doesn't work because it loads the css inside the body tag. Therefore, I'm trying to append the style to the head tag of my page. The problem is that I cannot select the style tag using jQuery. Here's my code: jQuery.get(cont...

How secure is a HTTP GET when the data is URL Encoded?

If the data is Url Encoded, is it secure enough to send login credentials over HTTP GET? ...

how to determine if a parameter has been "posted" or "geted" from java?

in asp there's request.form and request.queryString attributes, but in java it seems like we have only one collection, which can be accessed via request.getParamaterMap, getParametersNames, getParameterValues, etc... is there some way to tell which values have been posted nd which ones have been specified in the url? -- ps: what I'm...

Bittorrent tracker request

Using a torrent file from http://torrent.ubuntu.com:6969/ I am calculating its hash which matches with the hash on the page. Then i make a request to the tracker. Like http://torrent.ubuntu.com:6969/announce?info_hash=9a81333c1b16e4a83c10f3052c1590aadf5e2e20 But i get d14:failure reason63:Requested download is not authorized...

Getting number of fields in a database with an SQL Statement?

How would i get the number of fields/entries in a database using an SQL Statement? Thanks, Ash ...

C# generic list <T> how to get the type of T?

Hello, I’m working on a reflection project, and now I’m stuck. If I have an object of “myclass” that can hold a List does anyone know how to get the type as in the code below if the property myclass.SomList is empty? List<myclass> myList = dataGenerator.getMyClasses(); lbxObjects.ItemsSource = myList; lbxObjects.SelectionChanged +=...