asihttprequest的post和get请求有什么区别? [英] what is the difference between post and get request for asihttprequest?

查看:146
本文介绍了asihttprequest的post和get请求有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道asihttprequest库的Get和Post有什么区别.

I am wondering what the difference between Get and Post with asihttprequest library..

这是GET吗?

- (IBAction)sendHttpsRequest
{    
    //Set request address
    NSMutableString *databaseURL = [[NSMutableString alloc] initWithString:@"https://142.198.16.35"];

    //call ASIHTTP delegates (Used to connect to database)
    NSURL *url = [NSURL URLWithString:databaseURL];

    //This sets up all other request
    ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];

    [request setDelegate:self];
    [request startAsynchronous];
}

是您尝试在php文档中设置元素说的帖子吗?任何例子都很棒!

is a post when you try to set elements say within a php document? any examples would be awesome!

推荐答案

http ://www.cs.tut.fi/~jkorpela/forms/methods.html

HTTP GET是从客户端到服务器的请求,要求资源.

An HTTP GET is a request from the client to the server, asking for a resource.

HTTP POST是从客户端到服务器的数据上载(表单信息,图像数据等).

An HTTP POST is an upload of data (form information, image data, whatever) from the client to the server.

您所拥有的是一个HTTP POST.

What you have there is an HTTP POST.

-

每个 http://allseeing-i.com/ASIHTTPRequest/: ASIFormDataRequest

Per http://allseeing-i.com/ASIHTTPRequest/: ASIFormDataRequest

ASIHTTPRequest的子类,用于处理x-www-form-urlencoded和multipart/form-data帖子.它使发布数据和文件变得容易,但是如果您想自己管理POST数据或根本不需要发布数据,则无需将其添加到项目中.

A subclass of ASIHTTPRequest that handles x-www-form-urlencoded and multipart/form-data posts. It makes POSTing data and files easy, but you do not need to add this to your project if you want to manage POST data yourself or don’t need to POST data at all.

我不好,这是一个POST,而不是GET.我剩下的答案都是有效的,但:)

My bad, this one was a POST, not a GET. The rest of my answer was valid, though :)

这篇关于asihttprequest的post和get请求有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆