在http post/get请求中发送空值的正确方法是什么。
重要:我的意思是为请求的一个特定参数发送空值,而不是空字符串或缺少的字段。我认为以下选项是不正确的
http://test.com?param1=¶m2=bar //this is an empty string, not a null
http://test.com?param1=null¶m2=bar //this is a string with content "null"
http://test.com?param2=bar //para
我有一个使用外部JavaScript的随机文本/url的JavaScript代码,但是假设我有大约100个用于随机文本/url的url,那么最好的选择是什么?JavaScript还是别的什么?我希望能够使用外部的.txt文件,但对于PHP来说,我是新手。有什么想法或代码可以帮助我解决这个奇怪的问题吗?
这是JavaScript代码
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML .01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head