English 中文(简体)
Piit dev question: NSMutableURLRequest, cannt set the _GET to my from in php
原标题:iPhone dev question: NSMutableURLRequest, cannt set the _GET to my from in php

I have a php form, that is working. With that form I connect to a DB, where i get data out. :-) When I use the form from my Mac/laptop, i can enter the sata and I get the result.

当我在此试图与本法典挂钩时。 我可以通过这个形式,并说与非行的联系,但我把国家放在这里的问话是空的。 因此,我假定,这并不是送来,也不是装上ur。

问题是什么?

这是法典:

// NSString *myRequestString = [[NSString alloc] initWithFormat:@"&country=Germany"];
// NSData *myRequestData = [ NSData dataWithBytes: [ myRequestString UTF8String ] length: [ myRequestString length]];
// NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: [ NSURL URLWithString: @"THE URL" ]];
// [ request setHTTPMethod: @"GET" ];
// [ request setHTTPBody: myRequestData ];

表格:

<html><body>
<form action="connect.php" method="GET"> 
Country: <input name="country" type="text" /> 
<input type="submit" />
</form>
</body></html>

待补。 表格工作,但我无法从我的Pipe 发送数据。

希望u能够给我指明正确方向。

问题回答

要求将吉大港山区办法定为POST而不是GET。 表格是使用POST。

在猛虎人解组织的电话中,我发现利用Charles 确实有帮助。 网上偷窃代理,你可以确切地看到吉大港山区的交通从浏览器处看,然后按照你的密码要求尽可能地重复这一请求。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签