3
голосов
7ответов
31512 просмотров

PHP $_REQUEST as array

I have a search form, I want to $_REQUEST the search terms as an array so I can list each search term out, wrapping each term in a span for styling. How do I do that? Edit: Here's the code requested. <form action="http://localhost/wordpress" id="search" method="get"> <input type="text"...

0
голосов
2ответов
1008 просмотров

How to make a POST request in vb.net

i. I am using visual studio 8 using vb.net. I am trying to make a post request that complies with the following schema, but am failing miserably. <?xml version="1.0" encoding="UTF-8"?> <postBetOrder xmlns="urn:betfair:games:api:v1" marketId="2568540" round="1" currency="GBP"> <be...

1
голосов
2ответов
572 просмотров

ASP Classic GET request without multithreading

We are talking about Classic ASP and NOT ASP.NET! Lets start from top. We are using ISAPI_Rewrite and we would like to dynamically offer our customers to control rewriting of urls (giving them httpd.ini is not an option). We were thinking that all unknown url requests (we define this in httpd.in...

2
голосов
2ответов
673 просмотров

Http Modules are called on every request when using mvc/routing module

I am developing a http module that hooks into the FormsAuthentication Module through the Authenticate event. While debugging i noticed that the module (and all other modules registered) gets hit every single time the client requests a resource (also when it requests images, stylesheets, javascri...

3
голосов
4ответов
974 просмотров

Use cache file or one more HTTP Request?

on all the "speed up your website" sites and books they always tell us to minimize HTTP requests at all costs. This is fine and nice but what if that means that on every page you have to reload 120kb again and again and again because the user cache is empty? If i use 5 js files on every page of ...

0
голосов
3ответов
1251 просмотров

Implementing Singleton across requests to HttpHandler

I am attempting to create a singleton service that is used to process incoming requests to an HttpHandler. At the moment the service is being instantiated on every request. I make a call to the static class that holds an instance of the service, implemented as a singleton as below: public stat...

2
голосов
5ответов
9600 просмотров

hidden field is null on !IsPostBack and not null on IsPostBack

First I'll apologize for the unclear title of my question. I wasn't sure how to succinctly describe my problem in a title. I have a hidden field in my .aspx <input type="hidden" name="hid1" value="0" /> I want to set the value of this field during the page load event, and if it is not ...

3
голосов
2ответов
5356 просмотров

GWT Change URL after processing request parameters

I want to support linking with url request parameters in my GWT app. Example http://host/app?action=A&p1=v1&p2=v2 I am able to process the action=A & other params, but once I am done with that, I want to change the URL to remove them. The problem is that once the user comes to the ...

8
голосов
4ответов
18171 просмотров

Unable to set maxReceivedMessageSize through web.config

I have now investigated the 400 - BadRequest code for the last two hours. A lot of sugestions goes towards ensuring the bindingConfiguration attribute is set correctly, and in my case, it is. Now, I need YOUR help before destroying the building i am in :-) I run a WCF RestFull service (very lig...

85
голосов
4ответов
54391 просмотров

Simultaneous Requests to PHP Script

If the PHP Engine is already in the middle of executing a script on the server what would happen to other simultaneous browser requests to the same script? Will the requests be queued? Will they be ignored? Will each request have its own script instance? Any other possibility?

4
голосов
1ответов
7210 просмотров

Perform a simple HTTP request using C++ / Boost via a proxy?

I'm quite a newbie with Boost, and my only experience of surfing though a proxy using a library is using .NET (that is really convenient for that purpose). I'm now trying to perform a simple HTTP request through a HTTP proxy. Is there a tidy way to do it using boost directly? My proxy use a NTL...

1
голосов
6ответов
458 просмотров

Should I use Request.Params instead of explicitly doing Request.Form?

I have been using Request.Form for all my code. And if I need querystring I hit that explicitly too. It came up in a code review that I should probably use the Params collection instead. I thought it was a best practice, to hit the appropriate collection directly. I am looking for some reinforce...

2
голосов
4ответов
32611 просмотров

Changing the value of "id=" with document.getElementById

Is this the correct way to do it? <a id="load" href="#" class="btn load" onclick="request(this); $('#load').fadeOut(2000)">add</a> <a href="#" id="test" onClick="alert( 'TEST!' )">here</a> <script language="javascript"> var requests = 2; function request(self) {i...

4
голосов
3ответов
11567 просмотров

jQuery update a Div with a PHP script

I have absolutely no idea how to do this, so I'm just gonna go ahead and ask. What I want to do is update the contents of a div with a PHP script I have in an external file, called send.php. So I have a div like this: <div class="classname"> </div> And I want to post data to th...

8
голосов
5ответов
24502 просмотров

Why the character is corrupted when use request.getParameter() in java?

I have such a link in JSP page with encoding big5 http://hello/world?name=婀ㄉ And when I input it in browser's URL bar, it will be changed to something like http://hello/world?name=%23%24%23 And when we want to get this parameter in jsp page, all the characters are corrupted. And we have set this...

0
голосов
3ответов
769 просмотров

How to write a Google Analytics filter to record site searches

I what to record all my website searches with google analytics but the problem is my search links look like this **www.mywebsite.com/search/category/your+query+here** From what i found out i must give GA the query parameter (mywebsite.com/search.php?q=your+query+here) but i have none (and don...

32
голосов
3ответов
27958 просмотров

Get raw post data

According to php manual nor php://input neither $HTTP_RAW_POST_DATA work with multipart/form-data POST-requests. "php://input allows you to read raw POST data. It is a less memory intensive alternative to $HTTP_RAW_POST_DATA and does not need any special php.ini directives. php://input is not av...

70
голосов
4ответов
172675 просмотров

Where can I find the default timeout settings for all browsers?

I'm looking for some kind of documentation that specifies how much time each browser (IE6/IE7/FF2/FF3, etc) will wait on a request before it just gives up and times out. I haven't had any luck trying to get this. Any pointers?

13
голосов
3ответов
7296 просмотров

How can Request Validation be disabled for HttpHandlers?

Is it possible to disable request validation for HttpHandlers? A bit of background - I've got an ASP.NET web application using an HttpHandler to receive the payment response from WorldPay. The IIS logs show that the handler is being called correctly from WorldPay, but the code inside the handle...

0
голосов
2ответов
1894 просмотров

How do I load an external http xml request with jquery?

How do I load an external http xml request with jquery? Below is a url when pasted into a web browser like firefox, an xml document is shown. This is for the CPanel XML API. http://hostingz.org:2086/xml-api/createacct?username=WeAreWatching&plan=hostingz_FH5&ip=n&cpmod=x3&passw...

9
голосов
2ответов
26686 просмотров

iis7 increase number of threads/concurrent requests per working process

How can I increase the number of threads/concurrent requests per working process on IIS7? I don't want to increase the number of processes to create a web garden (for now).

2
голосов
2ответов
792 просмотров

Django template user request

I have a model Book which can be added to user's Favorites. So I defined 2 classes: class Book(models.Model): name = models.CharField(max_length = 40) class UserFavorite(models.Model): book = models.ForeignKey(Book) user = models.ForeignKey(User) Now I'd like to show on the main ...

0
голосов
1ответов
167 просмотров

Initializing resources based on route and/or module

I'm using Zend Framework 1.8/1.9's Zend_Application and the resource system to initilize a bunch of resources. I would like to only load certain .ini files based on the module being requested – for example, loading "help.ini" if (and only if) the CMS module is requested ("/cms"). Trouble is, I'm ...

0
голосов
4ответов
1669 просмотров

prevent direct access to a php include

I have a php script PayPal eStores/dl_paycart but it has PayPal eStores "settings.php" Security Bypass Vulnerability I would like to know if I can prevent direct access to a php include file. Would this help? defined( '_paycart' ) or die( 'Access to this directory is not permitted' ); Than...

2
голосов
4ответов
1389 просмотров

Persist javascript variables between GET requests?

ASP .NET is allowed Storing the values in hidden input fields is allowed Query String is not allowed POST request is not allowed It is possible to store JS variables between GET requests ? I want to reinitialize them on the client using ClientScript.RegisterStartupScript Can I use cookies for t...

15
голосов
2ответов
8664 просмотров

Asynchronous HTTP requests in PHP

Is there any sane way to make a HTTP request asynchronously in PHP without throwing out the response? I.e., something similar to AJAX - the PHP script initiates the request, does it's own thing and later, when the response is received, a callback function/method or another script handles the resp...

3
голосов
1ответов
1222 просмотров

http request on event with (jQuery?)

I have a select form, with a few option values, and I want the page to reload when someone selects another option value, without having a submit button that is. Just reload the page when someone change the value. I would like to skip fetching the data with an AJAX request. So the idea here is to ...

0
голосов
1ответов
601 просмотров

ASP.NET Request.Url is repeating the URL 3 times

I have a HttpHandler that is called whenever an image extension is accessed. This is what I have in the HttpHandler as a simple test: public void ProcessRequest(HttpContext context) { context.Response.Write(context.Request.Url.ToString()); context.Response.End(); } According to ...

-4
голосов
4ответов
3396 просмотров

How can I send an HTTPS request in Perl without LWP::UserAgent or HTTP::Request?

I need to send an HTTPS request without using LWP::UserAgent or HTTP::request? What is another method of doing so? This is the request I need to send: POST https://payflowpro.paypal.com/ Connection: close Host: payflowpro.paypal.com Content-Length: 181 Content-Type: text/namevalue X-VPS-CLIENT-T...

29
голосов
9ответов
96865 просмотров

Post to another page within a PHP script

How can I make a post request to a different php page within a php script? I have one front end computer as the html page server, but when the user clicks a button, I want a backend server to do the processing and then send the information back to the front end server to show the user. I was sayi...