get

Why is there one of my select options that put nothing in the query string at form submission?

This is my html: <select name="results"> <option value="0">Vis alle</option> <option value="10">10 resultater per side</option> <option value="20">20 resultater per side</option> <option value="30">30 resultater per side</option> <option value="40">40 resultater per side</option> <option value="50">50 resul...

$_Get not working in this particular case..

I am trying to use http://www.example.com/news/id/21/title/top-10-things/?page=1 for sending the page parameter and it is not working in php below is my setting in the .htaccess file Options +FollowSymLinks RewriteEngine on RewriteRule ^news/(.*)/(.*)/(.*)/(.*)/$ /news.php?$1=$2&$3=$4 RewriteRule ^news/(.*)/(.*)/$ /news.php?$1=$2 Rewr...

Shorter Alternative to base64 for PHP?

Hi all, I'm writing myself a script which basically lets me send a load of data in a single get request. I'm using base64 to encode it, but its pretty damn long and I'm concerned the URL may get too big. Does anyone know an alternative, shorter method of doing this? It needs to be decodable when received in a get request, so md5/sha1 a...

simultaneous logging in php

Hi All, I have a question. I have a script that's fired by a GET trigger. I'm trying to log the executions of the script using fwrite and append, but what I have happening is that if an instance is called while another instane is still writing the file, it will interrupt the fwrite and insert its own data. Is there any way I can queu...

Create a batch to automate HTTPS GET requests

how can i create a batch that can send HTTPS requests ? byfar i used Fiddler Request Builder so i can send requests like: GET https://website.com/index.aspx?typeoflink=**[HERE-VARIABLE-FROM-FILE]**&amp;min=1 HTTP/1.1 Accept: */* Referer: https://website.com/index.aspx?chknumbertypeoflink&amp;min=1 Accept-Language: en-us Accept-Encoding...

How to use Curl from command line to post GET method with cookies

`I have this requests that i have to send with windows xp GET https://website.com/index.aspx?typeoflink=**[HERE-VARIABLE-FROM-FILE]**&amp;min=1 HTTP/1.1 Accept: */* Referer: https://website.com/index.aspx?chknumbertypeoflink&amp;min=1 Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Wi...

HTTPS SSL 443 Mezcal

is there a Mezcal -like program that supports Security Certificates? or something like Fiddler where i can automate a GET https://website.com/index.aspx?typeoflink=**[HERE-VARIABLE-FROM-FILE]**&amp;min=1 HTTP/1.1 Accept: */* Referer: https://website.com/index.aspx?chknumber...link&amp;min=1 Accept-Language: en-us Accept-Encoding: gzip, ...

jQuery: Why 2 ajax GET requests instead of 1 request?

Why http://jsbin.com/ogilo/3#http://bit.ly/cKnMc2 has 2 ajax GET requests instead of 1 request? It has requests http://bit.ly/aHW5jy and http://bit.ly/cKnMc2 one after other. It must have just 1 request. Editable code in http://jsbin.com/ogilo/3/edit You can check the bug in Firebug console ...

301 Htaccess RewriteRule Query_String

Problem: Visitors open the url website.com/?i=133r534|213213|12312312 but this url isn't valid anymore and they need to be forwarded to website.com/#Videos:133r534|213213|12312312 What I've tried: During the last hours I tried many mod_rewrite (.htaccess) rules with using Query_String, all failed. The last message in this topic shows a ...

Functional test "get" requests and the https protocol

I'm trying to write a functional test for an action that must run over https. I'm not testing the HTTPS redirect - I already know that works from another test. What I'm trying to do is: get :new, :protocol => "https://" assert_redirected_to :root But this does not issue the request over https. Is there a "get" option that will allow ...

zend framework urls and get method

I am developing a website using zend framework. i have a search form with get method. when the user clicks submit button the query string appears in the url after ? mark. but i want it to be zend like url. is it possible? ...

Downloading PHP content from another domain (safe way)?

So, if this question has been asked before, I'm sorry. I'm not exactly sure what to search for. Introduction: All the domains I maintain now are hosted on my server, so I have not ran into this problem yet. I have created a structure, similar to WordPress, for uploading and editing images. I regularly create changes in the functions...

php request/post/get/session expiration

I know a SESSION can expire but what about $_REQUEST/$_POST/$_GET variables? My question is, I have users that submit information and I need to set a Id for that information before I insert it into a database. Now I thought about using a SESSION but the problem is if the session expires before the user has submitted the information to...

what is the problem with my http GET ??

in VBA i am creating a URL: URL = "http://api.local.yahoo.com/MapsService/V1/geocode?appid=" & yahoo & "&street=" & street & "&city=" & city & "&state=" & state & "&zip=" & zip for example it sets itself to equal this: http://api.local.yahoo.com/MapsService/V1/geocode?appid=username123&amp;street=1893 n. clyde morris blvd &city=dayto...

jQuery AJAX and VBscript - Can't get values in VBscript variables when using POST in the jQuery AJAX

I am having trouble getting the VBscript on a .asp page to assign values to variables which are sent by the jQuery ajax() function. I have this code on several other sites and it works fine, but for some reason it won't work on this website. Just in case it makes a difference we are running the sites through IIS7. The issue is that th...

jQuery AJAX and VBscript request.form

I am having some trouble sending values from one page to another using the jQuery ajax() function. For some reason the request.form on my VBscript page won't pick up the data I send using the ajax() function in jQuery. Here is my javascript function which is called in an onsubmit event in my form: function sendData() { $.ajax({ typ...

Unable to perform any PHP operations in an Ajax application.

My Ajax application was working fine, until I implemented an if statement in the PHP script... then like a contagious disease it seems that if I do anything to the data in PHP it returns nothing back to the Javascript layer. All I can do is echo the data back... For instance the query string I'm sending to the PHP reads... index.back3...

PHP get 31 days distance from starting date

Hello! How can I get what date it will be after 31 days starting with $startDate, where $startDate is a string of this format: YYYYMMDD. Thank you. ...

How can I pass data from an ajax request to a global variable?

Ok. I'm totally baffled. Here's the code: $(document).ready(function(){ var newToken = 1; $.get("junk.php", function(newToken) { alert(newToken); // alerts "junk" }); alert(newToken); // alerts "1" }); As per my comments, the first alert of newToken is "junk" (the only output of junk.php). Once outside the .get, ne...

POST vs GET methods - at the network level, which is more impacted by latency?

Is there any difference in network communication for HTTP GET and POST requests? With GET, I understand that the entire request is sent in one go. With POST, I think the initial request is sent, and then a second request is sent which sends all the parameters. For example, assume that the latency between server and client is 500ms. Wha...